পোস্টগুলি

ডিসেম্বর, ২০১৮ থেকে পোস্টগুলি দেখানো হচ্ছে

Laravel multi auth

ছবি
make default auth  php artisan make:auth make amother model+migration  then extend that model by 'Authenticatable' and customize and set all things as like as default auth model.  Add to the migration, remember token column and others columns => migrate as wel   ======================================================================== ** Adding more guard for extra auth to use the extra auth as like as default auth: ** Config => auth.php code : go to   'providers' and make another scope like users . code : go to  'guards'   Make new guard like web [ default guard ] .  [FOR WEB ] Note: No need to change or add another API until you want to check auth by external API. Or we can just add another API guard for farther use. :P  [FOR API]   👌👌 Everything setup complete for multi auth. : JUST 1 thing should do more 👀😂  set up password reset :- **Now  identifying which guard