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')
    ]);



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Q3UejI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire