@@ -35,8 +35,8 @@ |
||
| 35 | 35 | $id = $this->client->id ?? ''; |
| 36 | 36 | |
| 37 | 37 | return [ |
| 38 | - 'name' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_clients,name,' . $id, |
|
| 39 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_clients,slug,' . $id, |
|
| 38 | + 'name' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_clients,name,'.$id, |
|
| 39 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_clients,slug,'.$id, |
|
| 40 | 40 | 'description' => 'nullable|max:5500', |
| 41 | 41 | 'group' => 'nullable|numeric', |
| 42 | 42 | 'position' => 'nullable|numeric', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->process->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->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', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->feature->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->about->id ?? ''; |
| 38 | 38 | |
| 39 | 39 | return [ |
| 40 | - 'slug' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_abouts,slug,' . $id, |
|
| 41 | - 'title' => 'required|max:100|unique:' . config('website.table_prefix', 'website') . '_abouts,title,' . $id, |
|
| 40 | + 'slug' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_abouts,slug,'.$id, |
|
| 41 | + 'title' => 'required|max:100|unique:'.config('website.table_prefix', 'website').'_abouts,title,'.$id, |
|
| 42 | 42 | 'excerpt' => 'nullable', |
| 43 | 43 | 'description' => 'nullable', |
| 44 | 44 | 'position' => 'nullable', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->project->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->category->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 | 'parent_id' => 'nullable|exists:categories,id', |
| 46 | 46 | 'root_parent_id' => 'nullable|exists:categories,id', |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | $id = $this->notice->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', |
@@ -38,12 +38,12 @@ |
||
| 38 | 38 | $id = $this->product->id ?? ''; |
| 39 | 39 | |
| 40 | 40 | return [ |
| 41 | - 'sku' => 'required|unique:' . config('website.table_prefix', 'website') . '_products,sku,' . $id, |
|
| 42 | - 'name' => 'required|unique:' . config('website.table_prefix', 'website') . '_products,name,' . $id, |
|
| 41 | + 'sku' => 'required|unique:'.config('website.table_prefix', 'website').'_products,sku,'.$id, |
|
| 42 | + 'name' => 'required|unique:'.config('website.table_prefix', 'website').'_products,name,'.$id, |
|
| 43 | 43 | 'generic_name' => 'nullable', |
| 44 | 44 | 'strength' => 'nullable', |
| 45 | 45 | 'dosage_form' => 'nullable', |
| 46 | - 'slug' => 'required|unique:' . config('website.table_prefix', 'website') . '_products,slug,' . $id, |
|
| 46 | + 'slug' => 'required|unique:'.config('website.table_prefix', 'website').'_products,slug,'.$id, |
|
| 47 | 47 | 'category_id' => 'nullable|exists:categories,id', |
| 48 | 48 | 'selling_price' => 'required|numeric', |
| 49 | 49 | 'cost_price' => 'nullable|numeric', |