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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners