jeudi 10 mars 2016

Laravel 5.2 Model.php Relationship method Exception

I have started learning Laravel 5.2, I am using this piece of code to save data

Route::get('hello', function () {

    $info = new info;
    $info->name = "Test";
    $info->save;

    return view('hello');
});

Data is stroing successfully, but at the same time I am getting an exception.

Screenshot of the exception

The table info is the only table inside DB and have nothing like relations.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire