1. Home
  2. Laravel
  3. Create
#laravel

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

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