Thank you. I used migrations and it worked. But now, I want to use a object User in Models but I'm confusing :))
yes. I have a file User.php and it have code :
<?php class User extends Eloquent { public $table="users"; } but I wonder why the function save() not run?This is the notice error: Call to undefined method User::save().
Try creating the object first:
$user = new User;
$user->field_name = 'value';
$user->save();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community