CodepadME / laravel-tricks

The source code for the Laravel Tricks website
http://laravel-tricks.com
MIT License
966 stars 298 forks source link

Class 'User' not found in admin/users #15

Closed bolorino closed 10 years ago

bolorino commented 10 years ago

Getting /admin/users route throws a FatalErrorException.

Route: /admin/users

FatalErrorException
Class 'User' not found

Template: app/views/admin/users/list.blade.php

<h1>Showing all users ({{User::count()}})</h1>

Namespacing the class does work:

<h1>Showing all users ({{Tricks\User::count()}})</h1>

Thanks!

stidges commented 10 years ago

Woops, sorry about that! All fixed now :)

Thanks for catching that!