Hi Milos,
I tried to create new pages.
But the top "Creating new page" included in the documentation is incorrect, I believe it belongs to the "old version" of Vanguard.
First thing is:
"To verify that this code is actually working, you should go to yourwebsite.com/active-users and you should see following text on your screen:"
As I found out this must be yourwebsite.com/public/active-users
Second thing:
When going on step-by-step with the tutorial, the result is:
"namespace Vanguard\Http\Controllers\Web; use Vanguard\Http\Controllers\Controller; use Vanguard\User; class ActiveUsersController extends Controller { public function index() { // Fetch users from database $users = User::join('sessions', 'users.id', '=', 'sessions.user_id') ->select('users.*') ->distinct() ->get(); // Uncomment the following line if you want to see the info you get from the database // dd($users); // Load appropriate view for displaying the users // Note: compact('users') is the same as ['users' => $users] return view('user.active-users', compact('users')); } }
Whoops, something went wrong..."
Please check this. I'm not able to create a new page...
Regards,
Thomas