import session class in laravel code example Example: import session laravel use Illuminate\Support\Facades\Session;