I am doing:
to get all the users from users table. I want to select all the users except current logged in user. How should I do that? something like,
You can get the current user's id with auth()->id(). Then pass that to the query:
$users = User::where('id', '!=', auth()->id())->get();
Hope it helps!!
We can get the user's IP address ...READ MORE
yes we can keep track of ...READ MORE
Here is the way I do ...READ MORE
in Laravel's inbuilt auth system, the ...READ MORE
First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
This is simple you just need to ...READ MORE
Named routing is another amazing feature of ...READ MORE
You can use: Request::url() to obtain the current ...READ MORE
In order to identify the type of ...READ MORE
Already have an account? Sign in.