mostafalaravel

mostafalaravel

Member Since 1 Year Ago

Experience Points 1,620
Experience
Level
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Answer
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

26 Nov
2 weeks ago

mostafalaravel started a new conversation Htaccess

Hello How to prevent access to txt files except if this file is started by sitemap(.*).txt or by robots.txt

something like :

<FilesMatch "(?i)((\.tpl|.blade|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied

but it accepts only robots.txt, and I want to add also txt files with prefix sitemap

thanks

18 Nov
3 weeks ago

mostafalaravel started a new conversation Localization In Url

Hello, I have two lang versions Fr & En , actually it works and with this route :

Route::get('/lang/{lang}', ['as' => 'lang.switch', 'uses' => '[email protected]']);

I can switch between FR and EN without problems except :

One : when I type the domain name it must show the EN version with this url www.site.com/en/

Two : when I change the language , I can see it on the URL : www.site.com/fr/section1/sub-section1

thanks

13 Nov
4 weeks ago

mostafalaravel left a reply on Mail Send Problem

Try to check the mail box up, if it is full .

Are you working on VPN?

mostafalaravel left a reply on Error "composer Update"

The problem is that you have two classes with the same name, like :

/var/www/html/mywevi/Corals/core/User/Classes/UserEventServiceProvider.php

and

/var/www/html/mywevi/Corals/core/User/Providers/UserEventServiceProvider.php

I think you have two choices :

delete the the files if you don't need them OR change the class name

mostafalaravel left a reply on Slow Laravel Migration

make all migrations in local then export/import the database to the live environment.

you can also use the mysql command to import it :

mysql -u username -p database_name < file.sql

don't forget to backup before

mostafalaravel started a new conversation Email Password Reset : Send The Email With Queue

Is it possible to use queue when Laravel send the email reset password ?

here the PasswordBroker.php

    public function sendResetLink(array $credentials)
    {
        // First we will check to see if we found a user at the given credentials and
        // if we did not we will redirect back to this current URI with a piece of
        // "flash" data in the session to indicate to the developers the errors.
        $user = $this->getUser($credentials);

        if (is_null($user)) {
            return static::INVALID_USER;
        }

        // Once we have the reset token, we are ready to send the message out to this
        // user with a link to reset their password. We will then redirect back to
        // the current URI having nothing set in the session to indicate errors.
        $user->sendPasswordResetNotification(
            $this->tokens->create($user)
        );

        return static::RESET_LINK_SENT;
    }

mostafalaravel left a reply on Facebook Auth : Www.facebook.com Redirected You Too Many Times.

Problem solved !

It was just because the Email send by Facebook Auth exists already and not possible to duplicate it ...

I added a simple condition to prevent this error

thanks

12 Nov
4 weeks ago

mostafalaravel started a new conversation Facebook Auth : Www.facebook.com Redirected You Too Many Times.

Hello ,

first : this error is only on chrome browser With MS edge browser it works without problems.

I cleared all cookies from my browser, and I tried this from another computer.

here is my routes :


Auth::routes();

Route::get('facebook', function () {
    return view('facebook');
});
Route::get('auth/facebook', 'Auth\[email protected]');
Route::get('auth/facebook/callback', 'Auth\[email protected]');

thanks .

mostafalaravel left a reply on Queue Email In Shared Hosting

I found it and it works , I changed the php version used on the teminal by changing the path to the 7.1 php version in : .bashrc file then I ran the php artisan queue:work command and here is the result :

$ php -q /home/coorza5/coorza_com/artisan queue:work
[2018-11-12 15:20:54][1] Processing: App\Mail\siteMail
[2018-11-12 15:21:08][1] Processed:  App\Mail\siteMail
[2018-11-12 15:21:08][2] Processing: App\Mail\siteMail
[2018-11-12 15:21:17][2] Processed:  App\Mail\siteMail
[2018-11-12 15:21:17][3] Processing: App\Mail\siteMail
[2018-11-12 15:21:26][3] Processed:  App\Mail\siteMail
[2018-11-12 15:21:26][4] Processing: App\Mail\siteMail
[2018-11-12 15:21:33][4] Processed:  App\Mail\siteMail
[2018-11-12 15:24:25][5] Processing: App\Mail\siteMail
[2018-11-12 15:24:35][5] Processed:  App\Mail\siteMail

thank @

mostafalaravel left a reply on Queue Email In Shared Hosting

@cronix The php version on the terminal is 7.0 but on the project is 7.1 unfortunately they can't change it (terminal) because it's a shared hosting

11 Nov
1 month ago

mostafalaravel left a reply on Queue Email In Shared Hosting

@cronix Yes I have the SSH and when I run :

php -q /home/test/test_com/artisan queue:work

it returns :

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/coorza5/coorza_com/vendor/symfony/console/Output/Output.php on line 40

mostafalaravel started a new conversation Queue Email In Shared Hosting

Hello ,

I host my project in one shared hosting (inmotion hosting) and I would like to send Emails with queue using database driver but it's not working .

my question :

is it possible to to that with shared hosting ?

if yes : what cron jobs command should I put ?

the actual is :

php -q /home/test/test_com/artisan schedule:run 1>> /dev/null 2>&1

mostafalaravel left a reply on Send Email With Queue

update :

I uploaded to my shared server (inmotion Hosting) , when I send email I can see some lines but the playload is always "0" and no email is sent to the users . ..

mostafalaravel left a reply on Send Email With Queue

@skoobi This is what I have :

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
10 Nov
1 month ago

mostafalaravel left a reply on Send Email With Queue

@skoobi yes on local ,

but when I run scheudule I have this :

No scheduled commands are ready to run.

mostafalaravel started a new conversation Send Email With Queue

Hello , I would like to send an email with queue : actually my script works well :

...
Mail::to($user->email)
            ->send(new siteMail($data));
        return $this->registered($request, $user)
            ?: view('website.account_created_check_email',[
                'name'=> $data['name']
            ]);
...

I did :

php artisan queue:table
 
php artisan migrate

after I changed the script above to (changen ->send to ->queue

        Mail::to($user->email)
            ->queue(new siteMail($data));
        return $this->registered($request, $user)
            ?: view('website.account_created_check_email',[
                'name'=> $data['name']
            ]);

and it sends the email but when I listen to the queue , I find nothing. and the jobs table stills empty .

please Help

08 Nov
1 month ago

mostafalaravel left a reply on How To Cache The Whole Page For Lightning Fast Page Loads.

@psyao - I replaced the token in the cache before sending , is it a good idea?


        return preg_replace('#<meta\s*name="csrf-token"\s*content="(\w*)">#i', '<meta name="csrf-token" content="'.csrf_token().'">', $html);


mostafalaravel left a reply on How To Cache The Whole Page For Lightning Fast Page Loads.

Thanks

I need now to know about the csrf_token() , how to make it dynamic ?

mostafalaravel started a new conversation How To Cache The Whole Page

Hello I would like to know how to cache the whole specific page in laravel 5.6 something to add to the route thanks

07 Nov
1 month ago

mostafalaravel left a reply on Exclude Result When The -with- Statement Is Null

@tykus it works thanks ! in this case there is no need to the line ?

 $q->where('private', '=', 0);

in :

 ->with(['line' => function ($q) {
        $q->select('id', 'name', 'label', 'number', 'url');
        $q->where('private', '=', 0);
    }
    ])
06 Nov
1 month ago

mostafalaravel started a new conversation Exclude Result When The -with- Statement Is Null

Hello, How to exclude results when the "with" statement is null :


        $response = station::select('id', 'name', 'label', 'address', 'longitude', 'latitude', 'active', 'line_id')
            ->where('active','=',1)
            ->with(['line' => function ($q) {
                $q->select('id', 'name', 'label', 'number', 'url');
                $q->where('private', '=', 0);

            }
            ])
            ->whereRaw($sql_statement, [
                $from_location[0],
                $from_location[1],
                $from_location[0],
            ])
            ->take(config('parameters.numberOFresultsTOtakePERsearch'))
            ->get();

this returns me results even if "line" is null :

[{"id":1052,"name":"kerk","label":"police kerk kerklaan","address":"kerklaan 3 ","longitude":"4.43286538124084600000","latitude":"50.91280864080922400000","active":1,"line_id":23,"line":null},{"id":1053,"name":"GB","label":"carrefour GB","address":"cornelis peeterstraat","longitude":"4.43495750427246200000","latitude":"50.91187512273902600000","active":1,"line_id":23,"line":null},{"id":1054,"name":"garage vw","label":"vw dietern","address":"woluwestraat 63","longitude":"4.43231821060180750000","latitude":"50.91201041637316000000","active":1,"line_id":23,"line":null},{"id":1055,"name":"bridge collapre","label":"bridre","address":"bridge address","longitude":"4.43069815635681200000","latitude":"50.91113100072161000000","active":1,"line_id":23,"line":null},{"id":1056,"name":"pizzahut","label":"pizza hut","address":"gamma","longitude":"4.43051576614380000000","latitude":"50.91301834156838000000","active":1,"line_id":23,"line":null},{"id":1057,"name":"makro","label":"makro store","address":"rue makro stor","longitude":"4.43163156509399500000","latitude":"50.91445239885451500000","active":1,"line_id":23,"line":null},{"id":1058,"name":"drive ","label":"drive makro","address":"rue des makro","longitude":"4.42690014839172450000","latitude":"50.91477708493521000000","active":1,"line_id":23,"line":null},{"id":1059,"name":"rittweegenlaan","label":"logement social","address":"rue des logs 33","longitude":"4.42605257034301850000","latitude":"50.91356626489867000000","active":1,"line_id":23,"line":null},{"id":1060,"name":"under bridre","label":"bridre under garage","address":"rue des address ","longitude":"4.42473292350769100000","latitude":"50.91225394392346000000","active":1,"line_id":23,"line":null},{"id":1063,"name":"parking ","label":"cosmos parking","address":"rue des comos","longitude":"4.43043529987335300000","latitude":"50.91309275128803000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}},{"id":1064,"name":"r22 road","label":"datalax road","address":"rue wouleweelaan","longitude":"4.43160474300384600000","latitude":"50.91296422533388000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}},{"id":1065,"name":"gamma land","label":"gamma face police","address":"woolewee laan","longitude":"4.43069279193878300000","latitude":"50.91161806375076000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}}]

what I would like to have is only results where "line" is not null , like :

[{"id":1063,"name":"parking ","label":"cosmos parking","address":"rue des comos","longitude":"4.43043529987335300000","latitude":"50.91309275128803000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}},{"id":1064,"name":"r22 road","label":"datalax road","address":"rue wouleweelaan","longitude":"4.43160474300384600000","latitude":"50.91296422533388000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}},{"id":1065,"name":"gamma land","label":"gamma face police","address":"woolewee laan","longitude":"4.43069279193878300000","latitude":"50.91161806375076000000","active":1,"line_id":24,"line":{"id":24,"name":"delijn","label":"airport","number":"272","url":"NG4149"}}]

Thanks

04 Nov
1 month ago

mostafalaravel started a new conversation How To Run Controller Only From Intern

hello , I have an API service : example.com/distance/12.2323,-34.123123 witch return distance between current position and given coordinates. how to make it private and no one can use it outside from my project

thanks

mostafalaravel left a reply on Eloquent Needs Much Time Than Phpmyadmin Sql Query

hello , thanks for your help , when I remove this lien it returns the response in 0.56 s witch is very well:

->whereRaw('ST_Distance_Sphere( POINT(latitude, longitude), POINT( '.$from_location.') ) < 1000 ')

the problem is only with this line, but I dont understand why when I try it on the local server it works fine and also when I run it on phpMyAdmin on the hosting it works good???

02 Nov
1 month ago

mostafalaravel started a new conversation Eloquent Needs Much Time Than Phpmyadmin Sql Query

hello , first I added to mysql ST_Distance_Sphere() function witch calculate the distance between two coordinates (lat,lon) I created one controller to return the result as json response :

public function index( $from_location)
    {

        $response = station::select('id','name','label','address','longitude','latitude')
            ->whereRaw('ST_Distance_Sphere( POINT(latitude, longitude), POINT( '.$from_location.') ) < 1000 ')
            ->take(50)
             ->get();


        return response()->json($response);
...

this controller load in 5.5 seconds but when I execute it from phpMyAdmin it needs only 0.05 second!!!

Showing rows 0 - 24 (25 total, Query took 0.0500 seconds.)
select `id`, `name`, `label`, `address`, `longitude`, `latitude` from `stations` where ST_Distance_Sphere( POINT(latitude, longitude), POINT( 50.9130988,4.4302298) ) < 1000 limit 50

how to minimize the response 's time ? thanks

mostafalaravel started a new conversation Email Settings

Hello I want to setup my email parameters in the .env file , now i'm using MailTrap and it works well , but I want to use the hosting email (inmotion hosting) the parameters are :

 Incoming Server: secure251.inmotionhosting.com
Outgoing Server: secure251.inmotionhosting.com
Username: Your full e-mail address
Password: Your e-mail account password
Incoming Port: IMAP 993
Outgoing Mail server (SMTP) Port: 465
SSL: YES
SMTP Authentication Required
Secure Authentication or SPA needs to be turned off 

how to translate this to the .env file ?

MAIL_DRIVER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD
MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=
```
18 Oct
1 month ago

mostafalaravel left a reply on "with" And "whereRaw"

Thanks Cronix ,

mostafalaravel started a new conversation "with" And "whereRaw"

hello , I would like to get some cols from "Lines" witch has many "Stations" this code works very well

        $response = station::select(['name','label'])
->whereRaw(
             ('ST_Distance_Sphere( POINT(latitude, longitude), POINT('.$from_location.') ) < 1000')
        )->take(10)->get();

but when I try to get also line name it returns me : null here the code.

        $response = station::select(['name','label'])
->with('line:name')
->whereRaw(
             ('ST_Distance_Sphere( POINT(latitude, longitude), POINT('.$from_location.') ) < 1000')
        )->take(10)->get();
10 Oct
2 months ago

mostafalaravel started a new conversation How To Get Result In Scout/ElasticSearch With Distance Filter ?

hello , I work with Scout /Elasticsearch and this script works fine : ´´´ return search_index::search('*') ->from(0) ->take(50) ->get(); ´´´ now I would like to get results less than 10KM from this point ['lat' => 35.5, 'lon' => -2.6], here my Elastic search index ´´´ { "stations_search_engine": { "mappings": { "search_indices": { "properties": { "company_id": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "company_label": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "company_name": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "id": { "type": "long" }, "line_id": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "line_label": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "line_name": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "line_number": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "line_url": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "station_address": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "station_label": { "type": "text", "fields": { "raw": { "type": "keyword" } } }, "station_location": { "type": "geo_point" }, "station_name": { "type": "text", "fields": { "raw": { "type": "keyword" } } } } } } } } ´´´

14 Aug
3 months ago

mostafalaravel started a new conversation Search Engine

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

10 Aug
4 months ago

mostafalaravel started a new conversation QR Scanner

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

24 Jul
4 months ago

mostafalaravel started a new conversation CKeditor 5: How To Upload Image

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 ); } ); ´´´
29 Jun
5 months ago

mostafalaravel left a reply on Free GIS Framwork

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

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

24 Jun
5 months ago

mostafalaravel started a new conversation CSV Response

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

22 Jun
5 months ago

mostafalaravel left a reply on Slash - Back Slash

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

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));
                    }

'''

13 Jun
5 months ago

mostafalaravel started a new conversation Service Container From View Template

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

06 Jun
6 months ago

mostafalaravel started a new conversation Route With Middleware AND Session

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

08 Jan
11 months ago

mostafalaravel left a reply on Mailgun Issue

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

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. 
27 Dec
11 months ago

mostafalaravel started a new conversation Json_encode Without Quots

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"}}

20 Dec
11 months ago

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

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 
19 Dec
11 months ago

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

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);


   }
}
18 Dec
11 months ago

mostafalaravel started a new conversation Set Cookies From Any Route

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)

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)

Thanks kognitif it works

mostafalaravel started a new conversation Abort(404)

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

02 Dec
1 year ago

mostafalaravel started a new conversation XML With Orchestra , Get List Content

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

05 Jun
1 year ago

mostafalaravel started a new conversation PhpStorm

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