I have a Laravel Eloquent model User, which has a table with username and email columns. I need to add a property for the model on runtime, something like $user->secure. This pr
Just add an attribute to your class.
class User extends Eloquent { public $secure; // ... }
Note that it is better to declare it protected and add corresponding accessors and mutators (getSecure and setSecure methods) to your model.
getSecure
setSecure