Anwar

Anwar

Member Since 2 Years Ago

Experience Points 3,920
Experience
Level
Lessons Completed 32
Lessons
Completed
Best Reply Awards 1
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.

06 Jul
4 months ago

Anwar left a reply on “Parse Error: Syntax Error, Unexpected 'public' (T_PUBLIC)”

Check your "store" function, at the end the last "else" statement misses an accolade ;).

PHP thinks the "store" end accolade belongs to the "else" statement, so as it throws an exception because public is not allowed in class property of method function, but PHP parser thinks you still are in a method at this moment...

24 Jul
1 year ago

Anwar left a reply on Packagist From Custom Newly Created Console Command

Thank you @m7vm7v, in parallel I found a tutorial from Devdojo that explains the same but not in video (for those that prefer reading instead of watching), I drop it for you guys it helped me also : https://devdojo.com/blog/tutorials/how-to-create-a-laravel-package

23 Jul
1 year ago

Anwar left a reply on Packagist From Custom Newly Created Console Command

Got the solution by following this tutorial (hope it helps you folks) : https://devdojo.com/blog/tutorials/how-to-create-a-laravel-package. It is what the documentation say and this step-by-step tutorial came really useful.

22 Jul
1 year ago

Anwar started a new conversation Packagist From Custom Newly Created Console Command

Hi guys,

I ended up creating a console command which is currently located in my laravel projet in /app/Console/Commands/DatabaseModelizing.php. I find it uselful and I which I could use it across all of my laravel project.

How could I end up with a Packagist.org package that could let everyone (not only me) requiring my package and be ready to use : php artisan database:modelize ?

Alternatively, is there any way to say to Laravel "hey, here is another commands from a class located at /vendor/.../DatabaseModelizing.php. Could you please register it ?" ?

23 Feb
1 year ago

Anwar started a new conversation Libsodium

Guys, check out PHP 7.2 and new Libsodium integration on core developement of this last version. What about Laravel and his current cryptography system ?

17 Jan
1 year ago

Anwar started a new conversation Using Laravel Authentication System With Existing Tables

Hi there,

I am brand new on this forum, but I am using Laravel since less than a year now (seeing the evolution since 5.0 and the amazing job done untill 5.3 !).

The reason of this topic is that I would like to use Laravel to build up an authentication system. I gave a shot to the existing Laravel Authentication system available for version 5.3 (https://laravel.com/docs/5.3/authentication).

First I am using database method and not model method, so the configuration of my /config/auth.php file looks like this :

'providers' => [ // 'users' => [ // 'driver' => 'eloquent', // 'model' => App\User::class, // ],

'users' => [ 'driver' => 'database', 'table' => 't_e_utilisateur_uti', ], ],

(.env is correctly set up to talk to my "localhost" database)

Then I liked the fact that we can customize the query to specify our own column name for the username, which in my case is not "email" but "uti_email". So I used the code below :

public function username() { return 'username'; }

And added it to the existing /app/Http/Auth/LoginController.php file.

All works like a charm, but now I am stuck to specify my password field, which is not by default "password", but "uti_password". Is there any function like username() but for password ?