Need help in laravel 9

I am just trying to just dump the records from database.
I am using sqlite as database.

here is the sample code for the route:

Route::get('/', function(){
   $posts = Posts::all();

and it shows the error: Unsupported driver [https].

Please help. I am new to laravel.

does this help?

It still didn’t work.
By the way using tinker I am able to get the data from db.
Please see image below:

But I guess my problem is when displaying it in the site itself. I don’t know.