Support the ongoing development of Laravel.io →
Eloquent Views Blade
Last updated 2 years ago.
0

It is safe in this perspective (i.e from the HTML). The view is never outputing a single line besides what you write in it.

You can, and should, though put the password in the $hidden parameter which will hide when casting to array or json - i.e returning it from a Route or casting to string which you could do from time to time by accident. From the documentation:

class User extends Eloquent {

    protected $hidden = array('password');

}
Last updated 2 years ago.
0

Hidden was what I was looking for. Thanks.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.