mushti

Experience

700

1 Best Reply Awards

  • Member Since 1 Week Ago
  • 1 Lesson Completed
  • 0 Favorites

20th April, 2017

mushti left a reply on Laravel Relation For Different User Types • 1 week 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 • 1 week 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 • 1 week 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 • 1 week 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 • 1 week 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.