lundi 24 août 2015

Can you create a new Model instance without saving it to the database

I want to create a whole bunch of instances of a model object in Laravel, then pick the optimal instance and save it to the database. I know that I can create an instance with Model::create([]), but that saves to the database. If possible I'd like to create a bunch of models, then only "create" the one that is best.

Is this possible?

I am using Laravel 5.0



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NxJNfD
via IFTTT

Aucun commentaire:

Enregistrer un commentaire