Last change
on this file was cbd482b, checked in by beratkjufliju <kufliju@…>, 3 years ago |
edited filetype seeder
|
-
Property mode
set to
100644
|
File size:
500 bytes
|
Rev | Line | |
---|
[c6b84df] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace Database\Seeders;
|
---|
| 4 |
|
---|
| 5 | use Carbon\Carbon;
|
---|
| 6 | use Illuminate\Database\Seeder;
|
---|
| 7 |
|
---|
[4b7e2d3] | 8 | class FileTypesTableSeeder extends Seeder
|
---|
[c6b84df] | 9 | {
|
---|
| 10 | /**
|
---|
| 11 | * Run the database seeds.
|
---|
| 12 | *
|
---|
| 13 | * @return void
|
---|
| 14 | */
|
---|
| 15 | public function run()
|
---|
| 16 | {
|
---|
| 17 | \DB::table("file_types")->insert([
|
---|
[cbd482b] | 18 | "id" => 1,
|
---|
[4b7e2d3] | 19 | "mimes" => "jpg,jpeg,png,pdf,docx,xls,xlsx,txt,ppt,pptx",
|
---|
[c6b84df] | 20 | "max_size" => "5000",
|
---|
| 21 | "user_id" => "1",
|
---|
| 22 | "created_at" => Carbon::now()
|
---|
| 23 | ]);
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.