Support the ongoing development of Laravel.io →
posted 9 years ago
Configuration

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).

Last updated 3 years ago.
0

You should leave off the closing php tag in files that are pure php btw.

What version of Laravel are you using?

0

Try this:

Route::get('users','Users_Controller@get_index');
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DrewJay drewjay Joined 29 Feb 2016

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.

© 2025 Laravel.io - All rights reserved.