Reputation: 733
I would like to display the table based on SESSION USERNAME and using the following query but I am getting error.
SELECT tb_list.* FROM tb_list
WHERE username = ".Session::get('username')."
Error: Class 'App\Models\Session' not found
Could you please help me
Regards
Upvotes: 1
Views: 1167
Reputation: 1635
You have to use Session class like:
use Session;
or
use Illuminate\Support\Facades\Session;
Upvotes: 1