I tried to create my first laravel project and keep getting this error.I'm using Laravel 5. Here are my files:
File "users.php" at C:\WAMP\www\laravel\app\Http\Controllers
<?php
namespace App\Http\Controllers;
class Users_Controller extends Controller{
public $restful = true;
public function get_index(){
return View::make('users.index');
}
}
?>
File "index.php" at C:\WAMP\www\laravel\resources\views\users
<h>HELLO</h>
In routes file, I have this line:
Route::get('users','users@index');
(Error thrown occurs after accessing localhost/laravel/public/users).
You should leave off the closing php tag in files that are pure php btw.
What version of Laravel are you using?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community