If I try to return a view I can’t get a response
<?php
use AppHttpControllersProfileController;
use IlluminateSupportFacadesRoute;
Route::get('/', function () {
// echo view('welcome'); its working`your text`
return view('welcome'); // not working
});
if i make return echo its working i can see it on my localhost and see it in the network response place. Cant return a blade or variable.
I ask AI and its always say clear with artisan command or delete and clone it i tried everything but not working but on my friends computer its working i think the error is for my computer but i don’t know why?