mushti

Experience

700

1 Best Reply Awards

  • Member Since 2 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

20th April, 2017

mushti left a reply on Laravel Relation For Different User Types • 2 months ago

The solution given by @ohffs won't break anything. Just replace $this->is_shop with the property you use to differentiate between a shop and a supplier.

19th April, 2017

mushti left a reply on Auth::id() Showing Null • 2 months ago

Please define the auth middleware on the route before using Auth::id() otherwise it will always return null.

Route::middleare('auth')->prefix('seller')->group(function(){
     Route::get('/sms', 'seller\way2sms\[email protected]');
});

mushti left a reply on How To Pass $id From Controller To Route And Route To Controller • 2 months ago

You can do something like this:

        if(Auth::user()->phoneconfirmed==0)
        {
            return redirect('/seller/sms/'.$id);
        }

mushti left a reply on Logout In Laravel • 2 months ago

What I've seen so far, its the default behavior of the web browsers. They sort of handle the back functionality by fetching the web page from the cache until you refresh it.

mushti left a reply on Laravel & Passport = Frustration And 401 • 2 months ago

Have you set the authentication guard driver for api to passport in config\auth.php?

'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'passport',
            'provider' => 'users',
        ],
],
Edit Your Profile
Update

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