I've read several answers to this question, and none of them apply to my situation as my route is very simple.
Here is the controller code (controller created using aritsan:make): listapp/app/Http/Controllers/TestController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class TestController extends Controller
{
public function test () {
return view('lookma');
}
}
here is the web routes file: listapp/routes/web.php
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/lookma', 'TestContoller@test');
Things I've tried: - Look for typos or unclosed enclosures - cleared the cache - ran dump-autoload - changed the namespace from App to app in case is was a casing issue
I'm not sure why it is having this issue as everything seems to be matching up. I'm running Xubuntu 19.04 and PHP 7.4
TestContoller
should beTestController
. – Remul