Nee

Nee

Member Since 2 Years Ago

Experience Points 13,390
Experience Level 3

1,610 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 131
Lessons
Completed
Best Reply Awards 0
Best Reply
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.

09 Mar
2 months ago

Nee left a reply on Call To A Member Function Get() On Null

Could you check if you have a booking record with booking_status being 'confirmed'?

11 Feb
3 months ago

Nee left a reply on Laravel Passport Refresh Token

You get the refresh token when you successfully authenticate or when you refresh a token. I don't see how saving the refresh token would be a security issue. I mean you could expire it after a short time if you want so it becomes invalid.

Nee left a reply on Pivot Table And Routes

The best thing to do is to keep it simple. I personally don't like keeping my routes very long (a maximum of 3/).

Whatever you do just make sure you're able to easily find your way around your code if you have to come back

to it 6 months now.

Having longer routes has no added benefits in my opinion.

Keep it short and simple.

06 Feb
3 months ago

Nee left a reply on Set A Session In Laravel Blade

Just call it the same way you would.

In your controller.


Session::get($key);

Nee left a reply on How Can I Check Phone Number Exist Or Not From User & Payments Tables

You could do this with the validator class.



$request->validate([

        'phone' => 'required|exists:users',
    'phone' => 'required|exists:payments'

    ]);

You should take a look at the Laravel Validator.

You could also put this in a rule. That may be a better solution. It depends on you.

Custom Vaidation Rules .

05 Feb
3 months ago

Nee left a reply on Get One To Many Objects For A Many To Many Relationship.

You could do this.


    auth()->user()->load('groups', 'groups.reports');

Nee left a reply on Logging Errors On Production Server

You could log to slack for free.

Nee left a reply on Querying A Single User From Lumen API

In this case, the id will be passed to your showOne function from the route.


$router->get('user/{id}, '[email protected]');

Nee left a reply on How Can I Create Am Api From This. With Out It Routing Back To The Login Page

This is just a hunch but if you are being redirected to the login page all the time, the routes you are calling might be protected. Look in the app/exceptions folder. In your Handler Class, add this.


   protected function unauthenticated($request, AuthenticationException $exception)
    {

         return $request->expectsJson()
                ? response()->json([
                        'code'=> '401',
                        'message' => "Not authenticated Please login"
                        ]);

    }


Nee left a reply on How To Set Bearer Access_token In Request Header From Laravel Back-end

I am sure you have fixed the problem by now.

You should pass the bearer token along with your request to the backend.

For instance, when making an HTTP call from the front end, you can include the

bearer token in your header or body, depending on what the backend requires.

I don't think it is a good idea to set that in a middleware on the backend itself.

Sorry for the late reply @majeed.

Nee left a reply on Method Illuminate\Database\Eloquent\Collection::categories Does Not Exist.

See if this helps. I am assuming you have a method on your About model called categories().

public function index() 
{
  $about = About::with('categories', function($query){
    $query->where('id', 1);
  })->get();
  dd($about);
}
22 Jul
9 months ago

Nee left a reply on How To Set Bearer Access_token In Request Header From Laravel Back-end

Hi Majeed, is there a reason why you would want to set the access token in the backend. My understanding is that the bearer token is used to check if a request is authenticated before allowing access to a protected route. If it is preset in the backend, it defeats the purpose of trying to authenticate the request.(unless I’m wrong)

Secondly, you are trying to access a bearer token from the $request object, when the token is not being passed in the first place.

22 Mar
1 year ago

Nee started a new conversation Redis::del('name-of-key') Constantly Returns 0

Redis::del('key') constantly returns 0. The set and get commands work fine but del is always unsuccessful.

01 Feb
1 year ago

Nee left a reply on Laravel 4.2 Warning: Unknown: Failed To Open Stream: No Such File Or Directory In Unknown On Line 0

The error is gone, now i get a **'Whoops, looks like something went wrong.' ** page.

Nee started a new conversation Laravel 4.2 Unknown: Failed To Open Stream On Fresh Installation.

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required '/Users/yarteyd/Desktop/4.2Play/public/server.php' (include_path='.:') in Unknown on line 0

Hi, this is the error I get in place of the 'You have arrived' in Laravel 4.2. Please help