Q:

Laravel 5 : Couldn't instancing a model using tinker

I'm very new to laravel and PHP MVC frameworks, it's my first use of Eloquent. I'm trying to following a video tutorial.
So after creating a table by making new migration and migrate with artisan.
I created a model.Then I tried to instance it using tinker tool like so :
>>> $task = new App\Task;

I got this error : 
=> App\Task {#672}

this my model class :
class Task extends Model
{
    protected $table = 'tasks';
}

I did many research before asking this question, some people recommends using homestead, but I want to understand what I'm doing wrong.

A:

This is not an error. It shows that an Object of App\Task Class has been created.
Now you can assign values to this $task Object. Like we have a field 'name' in tasks table then the following part of code can save the $task in database with value of 'name' field.
$task = new App\Task;
$task->name = 'My first task';
$task->save();

