Would be a little bit more appropriate to add this
<?php
namespace App\Http\Controllers; //Add this line
use Illuminate\Http\Request; //Add this line
use App\Http\Requests; //Add this line
use App\Http\Controllers\Controller; //Add this line
class HomeController extends Controller {
public function welcome(){
return 'I use the controller.';
}
}
I solved the problem with creating HomeController via command prompt. Thanks a lot.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community