1. Home
  2. Laravel
  3. Create

Create method lets you set and persist a new item in one simple command.

#laravel
Item::create([
    'title' => 'New item',
    'data' => 'More data'
]);
copy
Full Laravel cheatsheet