samedi 1 décembre 2018

Why Laravel throws a MassAssignmentException when I have specified the fields already in array?

How is the following a mass assignment for Laravel when I have already specified the fields in array?

    Post::create([
        'title' => request('title'),
        'body'  => request('body')
    ]);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire