@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->facility->id ?? ''; |
| 38 | 38 | |
| 39 | 39 | return [ |
| 40 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id, |
|
| 41 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id, |
|
| 40 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id, |
|
| 41 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id, |
|
| 42 | 42 | 'excerpt' => 'nullable|max:5500', |
| 43 | 43 | 'description' => 'nullable|max:55000', |
| 44 | 44 | 'category_id' => 'nullable|exists:categories,id', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->software->id ?? ''; |
| 38 | 38 | |
| 39 | 39 | return [ |
| 40 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id, |
|
| 41 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id, |
|
| 40 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id, |
|
| 41 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id, |
|
| 42 | 42 | 'type' => 'nullable|max:255', |
| 43 | 43 | 'excerpt' => 'nullable|max:5500', |
| 44 | 44 | 'description' => 'nullable|max:55000', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->service->id ?? ''; |
| 38 | 38 | |
| 39 | 39 | return [ |
| 40 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id, |
|
| 41 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id, |
|
| 40 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id, |
|
| 41 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id, |
|
| 42 | 42 | 'excerpt' => 'nullable|max:5500', |
| 43 | 43 | 'description' => 'nullable|max:55000', |
| 44 | 44 | 'category_id' => 'nullable|exists:categories,id', |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | $id = $this->gallery->id ?? ''; |
| 36 | 36 | |
| 37 | 37 | return [ |
| 38 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_galleries,name,' . $id, |
|
| 39 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_galleries,slug,' . $id, |
|
| 38 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_galleries,name,'.$id, |
|
| 39 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_galleries,slug,'.$id, |
|
| 40 | 40 | 'videos' => 'nullable', |
| 41 | 41 | 'description' => 'nullable|max:5500', |
| 42 | 42 | ]; |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->page->id ?? ''; |
| 38 | 38 | |
| 39 | 39 | return [ |
| 40 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id, |
|
| 41 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id, |
|
| 40 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id, |
|
| 41 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id, |
|
| 42 | 42 | 'excerpt' => 'nullable|max:5500', |
| 43 | 43 | 'description' => 'nullable|max:55000', |
| 44 | 44 | 'category_id' => 'nullable|exists:categories,id', |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | $id = $this->post->id ?? ''; |
| 40 | 40 | |
| 41 | 41 | return [ |
| 42 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,slug,' . $id, |
|
| 43 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_categories,name,' . $id, |
|
| 42 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,slug,'.$id, |
|
| 43 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_categories,name,'.$id, |
|
| 44 | 44 | 'excerpt' => 'nullable|max:5500', |
| 45 | 45 | 'description' => 'nullable|max:55000', |
| 46 | 46 | 'category_id' => 'nullable|exists:categories,id', |
@@ -35,8 +35,8 @@ |
||
| 35 | 35 | $id = $this->team->id ?? ''; |
| 36 | 36 | |
| 37 | 37 | return [ |
| 38 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_teams,name,' . $id, |
|
| 39 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_teams,slug,' . $id, |
|
| 38 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_teams,name,'.$id, |
|
| 39 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_teams,slug,'.$id, |
|
| 40 | 40 | 'short_message' => 'nullable|max:255', |
| 41 | 41 | 'description' => 'nullable|max:55000', |
| 42 | 42 | 'social_medias' => 'nullable', |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | $id = $this->attribute->id ?? ''; |
| 27 | 27 | |
| 28 | 28 | return [ |
| 29 | - 'code' => 'required|unique:' . config('website.table_prefix', 'website') . '_attributes,code,' . $id, |
|
| 29 | + 'code' => 'required|unique:'.config('website.table_prefix', 'website').'_attributes,code,'.$id, |
|
| 30 | 30 | 'name' => 'required|max:60', |
| 31 | 31 | 'values' => 'required', |
| 32 | 32 | 'is_searchable' => 'sometimes|boolean', |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up(): void |
| 13 | 13 | { |
| 14 | - Schema::create(config('website.table_prefix', 'website') . '_' . 'payments', function (Blueprint $table) { |
|
| 14 | + Schema::create(config('website.table_prefix', 'website').'_'.'payments', function(Blueprint $table) { |
|
| 15 | 15 | $table->id(); |
| 16 | 16 | $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); |
| 17 | 17 | $table->integer('type')->default(1); |