Support the ongoing development of Laravel.io →

Thomas

Joined 3 Dec 2015

Statistics

Threads 0
Replies 4
Solutions 1
Articles 0

thomas has not posted any threads yet

replied 9 years ago

id as string?

Missing an single quote in the protected $casts line. Might that be the issue?

0 Likes
replied 9 years ago

Cant echo data in welcome.blade.php

You've not got an @endif statement. Laravel runs with the public/ directory as root - be sure that y...

0 Likes
replied 9 years ago

Create middleware to prevent a user manipulates the information of other users

$request->user()->id is fetching the id of the user making the request, which is of course equ...

0 Likes
Solved
replied 9 years ago

Check if user is logged in

As above, but to get rid of the \ you just need to add a use at the top of the Controller: use Auth;...

0 Likes

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.

© 2024 Laravel.io - All rights reserved.