Member Since 5 Years Ago

Experience Points

260 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
Best Reply Awards
Best Reply
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.


    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.


    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 11
54,740 XP
1 month ago
Activity icon

Replied to Post Method In Route Says 404 | Not Found

Hey @snapey , the whole point of this forum is to help and be gracious :). Using something like Don't dare to come back or bad code only intimidate others. Hope you find my feedback as constructive feedback

Activity icon

Replied to Post Method In Route Says 404 | Not Found

Let's break it down

// In your route you are expecting {product} to be passed in
Route::post('/product/{product}','[email protected]')->name('product.alternateimages');

However, in the form itself you aren't passing product at all ..

    <form method="POST" action="{{ route('admin.product.alternateimages') }}" enctype="multipart/form-data" class="add-new-post">

Then in the controller itself, you are trying to access product off $request ... So whats the solution,

    <form method="POST" action="{{ route('product.alternateimages' , [ // call product.alternativeimages as 
 //you have named it in your route 
             'product' => $product
     ]) }}" enctype="multipart/form-data" class="add-new-post">

documentation link :

Then in your controller,

public function alternateimages(Request $request, Product $product ) {
  // logic

Explore these links to fully understand

Hope that helps

3 months ago
Activity icon

Replied to Liskov Substitution Principle

Thank you @sergiu17 , I think that makes more sense. Much appreciated. I thought I can mark your and @bobbybouwmann answers best at the same time lol. However, I can mark only one answer best. Thank you both for your time

Activity icon

Replied to File In Console Directory Loses Value Inside Another Function?

I think you are setting $accessToken as local variable rather than class property

  protected $accessToken;
  public function __construct()
    // shouldn't this be assigned as a class property
    // rather than method property
    $this->accessToken = config('values.accessToken');
  public function commandWork() {
        $token = $this->accessToken; //equals null?
         dd($token); //returns null?

Activity icon

Replied to Liskov Substitution Principle

hey @bobbybouwmann, thanks for your reply and what would be the violation ??

3 months ago
Activity icon

Started a new conversation Liskov Substitution Principle

Hey guys,

I am trying to come up with a real world example for Liskov substitution principle in an ecommerce application context. Now I understand the principle, however, I am struggling to come up with a really good use case. Can any body help out, please?

10 months ago
10 months ago
Activity icon

Replied to Foundation, Bootstrap Or Other

I would say look into tailwind.css , which is a utitly based library. It will help in reducing your css bundle and actually help in coding faster. Foundation and bootstrap are great frameworks, but they come with a lot of baggage

10 months ago
Activity icon

Replied to Object Of Class Closure Could Not Be Converted To String

You have run the query but haven't asked to return any thing ?? try

    ->join('drilldown_boards_items AS dbi', 'dbi.board_item_id', '=', '',function ($join) {
        $join->on('user_boards_items AS ubi', 'ubi.board_item_id', '=', '');
    ->addSelect(DB::raw(("AND uib . user_name = '[email protected]'")))
    ->addSelect(DB::raw('(CASE WHEN ubi.user_name IS NULL THEN 0 ELSE 1 END) AS is_selected'))
    ->orderBy('label', 'desc')

so you need to call get() function on query

Activity icon

Replied to A Error In Laravel-5-boilerplate

Hi ya, Please pay attention to the namespace. Your trait is located at


But where ever you are using , as from the error page you have provided, its trying to use


Hope that fixes it

2 years ago
Activity icon

Replied to How To Secure An Internal API From Public?


Well I think to make sure that it is an internal api call, you would have a simple middleware which would check the ip address and see if the api call is being made from same api. hope that helps

2 years ago
Activity icon

Replied to Access To API Via A Guest Account With Abilities

I would suggest to take the middleware out and use it in controllers' constructor function where you can specify which routes should be protected and which routes can be accessed without being logged in.

Here is the link for video where Jeffrey talks about middleware

Activity icon

Replied to Formulaire

I think you need to bind your form to model as your Laravel Collective give you that method so maybe something like below

{!! Form::model($post, ['route' => ['news.update', $post->id]]) !!}

Hope that helps

Activity icon

Replied to How To Secure An Internal API From Public?

Hi ya,

I am sure I am quite late to the party. However, I had been stuck myself in an exactly same situation and was trying to figure out a way where I could achieve the same results as described by @aligajani . I am writing my solution and understanding of it for any body who might need it.

After quite a bit of research and understanding how JWT works which by the way I still need to research a bit more to fully understand it. However, to get an overview I can't find a better article to explain in simple words other than

Now, once I understood how JWT works, it was easy for me to wrap my head around the whole flow. So here is how I approached it. As I am working on an internal API for my company, I created a middleware to check whether a request to certain endpoints is coming from whitelisted API which you can easily get from $request->api().

Then I installed the excellent package by tymondesigns at I followed the installation and generated the secret key. Now here comes the fun part.

I wanted the end points to be secured without needing for me to be logged in, hence I created my own middleware where I grabbed certain user from my users table and created a JWT token from that user object.

$user = App\User::whereEmail('email')->first() $token = JWTAuth::fromUser($user);

once I got the token all I needed to do was to call my end point i.e. /api/v1/users?token={generatedToken} and voila !!! all good to go. However, we also need to refresh the token after certain time, which again the package thankfully provide two middlewares

jwt.auth and jwt.refresh

jwt.auth midleware tries to create token using authenticate method through credentials, so i swapped it for my middleware where I authenticate user as above and jwt.refreshes the token.

If you read the article I mentioned and then read the package wiki it will all make sense. Cheerio !!

3 years ago
Activity icon

Replied to [Laravel 5.3] Error On Gulp Execution

I am having same problem :(

4 years ago
Activity icon

Replied to Database Connection To SQL SERVER 2012

Right after researching for few days, bumped into this brilliant article about how to connect to SQL SERVER. I hope it might help some one and save him the amount of time i spent trying to figure out how to do it.

4 years ago
Activity icon

Replied to Connect Laravel To Microsoft SQL

@Houbsi sorry mate didnt mean to spam your discussion. As the topic was already getting discussed here thats why posted. Hope you dont mind

Activity icon

Replied to Connect Laravel To Microsoft SQL

Thanks @maximebeaudoin for your help. However, I installed them drivers on the windows that i am running on parallel desktop on my IMAC. Its really frustrating because i have never tried to connect to a SQL Server before. I even tried the OBDC Driver but there is no step by step instructions as how to do it properly. If you do know of any step by step instructions then please let me know. I would really appreciate as its driving me crazy :(

Activity icon

Replied to Database Connection To SQL SERVER 2012

Ok for some reason my question decided to post itself 4 times :(. sorry guys no idea how that happened. As fas i know all i need to do is to provide the parameters as i have shown in the code above and i should be good to go. but its just not working for me :(

Activity icon

Started a new conversation Database Connection To SQL SERVER 2012

I am trying to connect to SQL Server 2012. I have already changed the default from 'mysql' to 'sqlsrv' in my app.php file and have also provided the following connection parameters

'sqlsrv' => array(
            'driver'   => 'sqlsrv',
            'host'     => '192.***.**.*',
            'database' => 'Database name',
            'username' => 'Username',
            'password' => 'password',
            'prefix'   => '',

I have tried all sorts but i am getting the pdo exception of driver not found. what am i doing wrong ?? Please help

Activity icon

Replied to Connect Laravel To Microsoft SQL

Hi there, I have been trying to sort out this issue for past week and no luck so far.. I developed the database locally using mysql and now trying to move the application to SQL SERVER 2012 at work and i am getting PDO Exception (Driver not found). Could some one help please ??