T
T
Twelfth Doctor2017-05-05 20:40:50
Laravel
Twelfth Doctor, 2017-05-05 20:40:50

Why doesn't this simple Lavarel class example work?

Hello! For some reason I can't create the class

<?php
namespace App\Http\Controllers;
use DB;
use App\Http\Controllers\Controller;
class Test extends Controller {}
?>

When running the file:
/usr/bin/php /home/******/*****/****/*****/app/testclass.php
PHP Fatal error: Class 'App\ Http\Controllers\Controller' not found in /home/*******/******/****/*****/app/testclass.php on line 5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-05-05
@alexey-m-ukolov

Class 'App\Http\Controllers\Controller' not found
Right, well, what can be unclear here?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question