thanks for replieng Route::get('/', function () { db::connection()->getPdo(); }); that is the code and "no route found " is the error
what is the URL that you are trying to hit? Is it API or web URL?
bahador-cpu liked this reply
i guess it's API , basically i am trying to access the varibles in .env file in my laravel project , and also establish a connection via web.php file in order the check or modify some ..
php artisan route:list
Run the above command in the console and check what are the routes are registered to the application
bahador-cpu liked this reply
Undefined type 'Illuminate\Support\Facades\Route'. this is what i got in the terminal and problem section
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community