Compare commits
No commits in common. "94d6cbbca77cae62f64c7f80db393514e776120c" and "cf43e0b8d0b57549ab3e1e4acb44b105672cd2f0" have entirely different histories.
94d6cbbca7
...
cf43e0b8d0
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,7 +2,6 @@
|
|||
/node_modules
|
||||
/public/build
|
||||
/public/hot
|
||||
/public/assets
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/vendor
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ class AddServiceRequest extends BaseFormRequest
|
|||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'title' => ['required', 'string', 'max:1000'],
|
||||
'description' => ['required', 'string', 'max:1000'],
|
||||
'title' => ['required', 'string', 'max:255'],
|
||||
'description' => ['required', 'string', 'max:255'],
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ class EditServiceRequest extends FormRequest
|
|||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'title' => ['nullable', 'string', 'max:1000'],
|
||||
'description' => ["nullable", 'string', 'max:1000'],
|
||||
'title' => ['nullable', 'string', 'max:255'],
|
||||
'description' => ["nullable", 'string', 'max:255'],
|
||||
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\key;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
|
|
@ -19,16 +17,6 @@ public function run(): void
|
|||
{
|
||||
// \App\Models\User::factory(10)->create();
|
||||
|
||||
// setting,about_us,contact_us,home
|
||||
|
||||
|
||||
// home_description
|
||||
// home_main_image
|
||||
// about_us_description
|
||||
// contact_us_title
|
||||
// links
|
||||
// about_us_title
|
||||
// about_us_description
|
||||
|
||||
// php artisan db:seed
|
||||
User::create([
|
||||
|
|
@ -36,9 +24,5 @@ public function run(): void
|
|||
"password"=>Hash::make("12345678"),
|
||||
"name"=>"Super Admin"
|
||||
]);
|
||||
$this->call([
|
||||
KeysSeeder::class,
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,55 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Key;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class KeysSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
|
||||
$keys = [
|
||||
[
|
||||
'key' => 'home_description',
|
||||
'value' => 'Home page description',
|
||||
'type' => 'home',
|
||||
],
|
||||
[
|
||||
'key' => 'home_main_image',
|
||||
'value' => '/',
|
||||
'type' => 'home',
|
||||
],
|
||||
[
|
||||
'key' => 'about_us_title',
|
||||
'value' => 'About Us',
|
||||
'type' => 'about_us',
|
||||
],
|
||||
[
|
||||
'key' => 'about_us_description',
|
||||
'value' => 'about_us_description',
|
||||
'type' => 'about_us',
|
||||
],
|
||||
[
|
||||
'key' => 'contact_us_title',
|
||||
'value' => 'Contact Us',
|
||||
'type' => 'contact_us',
|
||||
],
|
||||
[
|
||||
'key' => 'links',
|
||||
'value' => "links",
|
||||
'type' => 'setting',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($keys as $key) {
|
||||
Key::create($key);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
7
keys
7
keys
|
|
@ -1,7 +0,0 @@
|
|||
home_description
|
||||
home_main_image
|
||||
about_us_description
|
||||
contact_us_title
|
||||
links
|
||||
about_us_title
|
||||
about_us_description
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user