Category: Laravel

PanjehSep 16 · 1 min readGetting Authenticated user in LaravelUsing Facade:Auth::user(); or\Auth::user(); // without need to use Auth namespaceUsing helper function :auth()->user();In case we have Route::post() in our routes, our controller seems something like this:Then inside the store action we
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners