mostafalaravel

Experience

820

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 0 Lessons Completed
  • 0 Favorites

14th August, 2018

mostafalaravel started a new conversation Search Engine • 6 days ago

Hello , I want to create a search engine (indexing some field from several tables) Is there any solution except Elastic search and other drivers because I have just a simple shared hosting . thanks

10th August, 2018

mostafalaravel started a new conversation QR Scanner • 1 week ago

Hello, I would like to add a feature to scan QR code using the mobile device, Is there any service to make it (javascript) thanks

24th July, 2018

mostafalaravel started a new conversation CKeditor 5: How To Upload Image • 3 weeks ago

I would like to enable images when I use CKeditor5, how to do it ? ´´´ CKEditor 5 - Inline editor

Inline editor

This is some sample content.

InlineEditor .create( document.querySelector( '#editor' ) ) .catch( error => { console.error( error ); } ); ´´´

29th June, 2018

mostafalaravel left a reply on Free GIS Framwork • 1 month ago

they said it's open source and this is about the framwork , but the mapping service (loading maps tiles...) I dont know if it's free also because they ask Key API !

mostafalaravel started a new conversation Free GIS Framwork • 1 month ago

Hello , in my Laravel project I will need to use GIS to get and set some coordinates from / to the map. I would like to know if leafletjs is free , otherwise if you have any other alternative please hemp me . thanks

24th June, 2018

mostafalaravel started a new conversation CSV Response • 1 month ago

Hello , I have a controller witch return json response , what i would to do is to return a downloadable CSV from this json ? is it possible , it yes , how? thanks

22nd June, 2018

mostafalaravel left a reply on Slash - Back Slash • 1 month ago

It work ! So if it work on windows , I need to change nothing when I host it on linux (about slashes and back slashes ) ?

mostafalaravel started a new conversation Slash - Back Slash • 1 month ago

First Im working on Windows 10 and after I will host my work in a Linux server the problem is about slashes ans back slashes '''

                    $allowedMimeTypes = ['image/jpeg','image/gif','image/png'];
                    $contentType = mime_content_type(public_path('from_attach/'.$path_folder.'/'.$hash . '.' . $ext));

                    if(in_array($contentType, $allowedMimeTypes) ){
                        $image       = public_path($path_folder.'/'.$hash . '.' . $ext);
                        $image_resize = Image::make($image->getRealPath());
                        $image_resize->resize(300, 300);
                        $image_resize->save( public_path($path_folder.'/'.$hash . '__small__.' . $ext));
                    }

'''

13th June, 2018

mostafalaravel started a new conversation Service Container From View Template • 2 months ago

Hello , How to call service container from the view template ? I use this service from the controller : app()->make('EmailChecker')->email('[email protected]'); witch returns the user role thanks

6th June, 2018

mostafalaravel started a new conversation Route With Middleware AND Session • 2 months ago

hello , this is the route : Route::resource('/company', 'companyController')->middleware('auth'); after login I create Session('role') this one takes two values : "company" or "driver" I want to add to the Middleware another condition of session('role') thanks

8th January, 2018

mostafalaravel left a reply on Mailgun Issue • 7 months ago

Yes but I dont have a domain name I work only on my localhost and lara.test is just a local domain name ....

mostafalaravel started a new conversation Mailgun Issue • 7 months ago

hello , I try to send EMail through mailgun , but I have one problem :

Expected response code 250 but got code "554", with message "554 Sandbox    subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings. 

27th December, 2017

mostafalaravel started a new conversation Json_encode Without Quots • 7 months ago

hello in my view : {{ json_encode($data["application_id_json"]) }}

now the problem is when I check the html source it shows : {"@context":"http://schema.org","@type":"Product","sku":"ypxfBlbC","name":"Mouse Immunoglobulin E (IgE) ELISA Kit","productID":"abx573478","category":"lab/elisas/mouse","description":"Principl","url":"http://","brand":{"@type":"Brand","name":"abbex","logo":"https://www.mybiosource.com/includes/menu_nav/antibody-protein-elisa-kit.gif"},"offers":{"@type":"Offer","price":"851","availability":"http://schema.org/InStock","priceCurrency":"eur"}}

20th December, 2017

mostafalaravel left a reply on Call Json List From A Controller And View It On The View • 8 months ago

hello , I found it and I hope this solution is the logical one in the view :

@foreach(\App\Http\Controllers\categoryListController::getlist()->original as $item=>$value)
 {{$value}}<br>
@endforeach 

19th December, 2017

mostafalaravel started a new conversation Call Json List From A Controller And View It On The View • 8 months ago

hello , I have one contoller : <?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\category;
use Illuminate\Support\Facades\Response;

class categoryListController extends Controller
{
    //
  public function getlist()
   {

      $list = category::all();
      $list_out = array();
      foreach ($list as $categories) {

          foreach (json_decode($categories->hash ) as $category) {
              //echo $category."<br>";
             if(!in_array($category,$list_out)) $list_out[$categories->id] = $category;
          }

        }

        return Response::JSON($list_out);


   }
}

18th December, 2017

mostafalaravel left a reply on Set Cookies From Any Route • 8 months ago

thanks :)

mostafalaravel started a new conversation Set Cookies From Any Route • 8 months ago

Hello , I would like to make a cookie to set the currency up , I'm looking for a way to do that from what ever the location (from any route) how can I do ?

thanks

mostafalaravel left a reply on Abort(404) • 8 months ago

one last question :

why I have this Error message :

ErrorException (E_ERROR)
Undefined variable: errors (View:           D:\works\imdb\resources\views\layouts\template.blade.php) (View:                D:\works\imdb\resources\views\layouts\template.blade.php)

<span class="text-danger"><?php echo $errors->first('g-recaptcha-response','<small class="text-danger">please validate the recaptcha</small>'); ?></span>

it's about my re-captcha when the user send form without validate it

mostafalaravel left a reply on Abort(404) • 8 months ago

Thanks kognitif it works

mostafalaravel started a new conversation Abort(404) • 8 months ago

hello , I have a Product controller where if the ID product not exists I should view the 404 page ,

as you can see here :

if(count($current_product)==0)  abort(404,"product not found");

now in my handler.php file , I have :

public function render($request, Exception $exception)

{

... dd($exception); ... }

as result I have :

NotFoundHttpException {#256 ▼ -statusCode: 404 -headers: [] #message: "product not found" #code: 0 #file: "D:\works\imdb\vendor\laravel\framework\src\Illuminate\Foundation\Application.php" #line: 937 trace: {▶}

Now my question is why code value is 0 instead of 404?? My goal is to make a kind of redirection by error code .

thanks

2nd December, 2017

mostafalaravel started a new conversation XML With Orchestra , Get List Content • 8 months ago

hello , this is the XML source :

17400 20 0 29195140 29194572 29186448 29184347 29184156 29184147 29181011 29174636 29173543 29173039 29169972 29168342 29166458 29162318 29158374 29149956 29148816 29133956 29132035 29131884 igg[title] title 17400 N GROUP igg[title]

I try to get the Id(s) list but it gives me empty arrays

I need only the Id list content as an array

thanks

5th June, 2017

mostafalaravel started a new conversation PhpStorm • 1 year ago

hello , I try to install Laravel IDE HELPER on phpStorm2017.1.4 when I add barryvdh/laravel-ide-helper (2.3-dev) as a composer Dependency it shows me this error message : C:\xampp\php\php.exe C:\ProgramData\ComposerSetup\bin\composer.phar require barryvdh/laravel-ide-helper:2.3-dev -n --no-progress ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested package barryvdh/laravel-ide-helper 2.3-dev exists as barryvdh/laravel-ide-helper[1.11.x-dev, dev-master, 2.3.x-dev, dev-revert-303-master, v1.0.0, v1.0.0-beta1, v1.0.0-beta2, v1.0.1, v1.0.2, v1.0.3, v1.0.4, v1.1.0, v1.1.1, v1.1.2, v1.1.3, v1.10.0, v1.11.0, v1.11.1, v1.11.2, v1.11.3, v1.11.4, v1.11.5, v1.11.6, v1.2.0, v1.2.1, v1.3.0, v1.3.1, v1.3.2, v1.4.0, v1.5.0, v1.5.1, v1.5.2, v1.6.0, v1.6.1, v1.7.0, v1.7.1, v1.7.2, v1.8.0, v1.8.1, v1.9.0, v1.9.1, v1.9.2, v1.9.3, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.1.0, v2.1.1, v2.1.2, v2.1.3, v2.1.4, v2.2.0, v2.2.1, v2.2.2, v2.2.3, v2.3.0, v2.3.1, v2.3.2] but these are rejected by your constraint.

Installation failed, reverting ./composer.json to its original content.

my composer.json

{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=5.6.4", "laravel/framework": "5.4.", "laravel/tinker": "~1.0" }, "require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.", "phpunit/phpunit": "~5.7" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\": "app/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": { "post-root-package-install": [ "php -r "file_exists('.env') || copy('.env.example', '.env');"" ], "post-create-project-cmd": [ "php artisan key:generate" ], "post-install-cmd": [ "Illuminate\Foundation\ComposerScripts::postInstall", "php artisan optimize" ], "post-update-cmd": [ "Illuminate\Foundation\ComposerScripts::postUpdate", "php artisan optimize" ] }, "config": { "preferred-install": "dist", "sort-packages": true, "optimize-autoloader": true } }

Please help me to solve this issue and thanks in advance

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.