Support the ongoing development of Laravel.io →
posted 9 years ago
Database
Last updated 2 years ago.
0

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.'; 
    }

}
Last updated 9 years ago.
0

I solved the problem with creating HomeController via command prompt. Thanks a lot.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.