2019-08-29 15:51:13 +00:00
|
|
|
<?php
|
|
|
|
|
2022-08-10 09:18:10 +00:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2019-08-29 15:51:13 +00:00
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
class MimetypeTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
|
|
|
|
DB::table('mime_types')->insert([
|
2019-09-20 17:00:57 +00:00
|
|
|
[
|
2019-09-23 15:44:42 +00:00
|
|
|
'name' => 'application/x-sqlite3',
|
2019-09-20 17:00:57 +00:00
|
|
|
'file_extension' => 'gpkg',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
2019-08-29 15:51:13 +00:00
|
|
|
[
|
|
|
|
'name' => 'image/jpeg',
|
|
|
|
'file_extension' => 'jpg|jpeg|jpe',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'image/png',
|
|
|
|
'file_extension' => 'png',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'application/pdf',
|
|
|
|
'file_extension' => 'pdf',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'text/html',
|
|
|
|
'file_extension' => 'htm|html',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'text/csv',
|
|
|
|
'file_extension' => 'csv',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'text/plain',
|
|
|
|
'file_extension' => 'txt|asc|c|cc|h|srt',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
|
|
'file_extension' => 'xlsx',
|
|
|
|
'enabled' =>true,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|