@@ -120,15 +120,15 @@ discard block |
||
| 120 | 120 | { |
| 121 | 121 | // Publish Config File |
| 122 | 122 | $this->publishes([ |
| 123 | - __DIR__ . '/../../config/website.php' => config_path('website.php'), |
|
| 123 | + __DIR__.'/../../config/website.php' => config_path('website.php'), |
|
| 124 | 124 | ], 'website-config'); |
| 125 | 125 | // Publish View Files |
| 126 | 126 | $this->publishes([ |
| 127 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 127 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 128 | 128 | ], 'website-views'); |
| 129 | 129 | // Publish Migration Files |
| 130 | 130 | $this->publishes([ |
| 131 | - __DIR__ . '/../../database/migrations' => database_path('migrations'), |
|
| 131 | + __DIR__.'/../../database/migrations' => database_path('migrations'), |
|
| 132 | 132 | ], 'website-migrations'); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | protected function registerResource() |
| 141 | 141 | { |
| 142 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); // Loading Migration Files |
|
| 143 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'website'); // Loading Views Files |
|
| 142 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
|
| 143 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
|
| 144 | 144 | $this->registerRoutes(); |
| 145 | 145 | } |
| 146 | 146 | |
@@ -163,8 +163,8 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | protected function registerRoutes() |
| 165 | 165 | { |
| 166 | - Route::group($this->routeConfiguration(), function () { |
|
| 167 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php'); |
|
| 166 | + Route::group($this->routeConfiguration(), function() { |
|
| 167 | + $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
|
| 168 | 168 | }); |
| 169 | 169 | } |
| 170 | 170 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('blocks', function (Blueprint $table) { |
|
| 16 | + Schema::create('blocks', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('code')->unique(); |
| 19 | 19 | $table->string('type'); |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function indexBlock() |
| 15 | 15 | { |
| 16 | 16 | $blocks = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function () { |
|
| 17 | + ? (Cache::has('blocks') ? Cache::get('blocks') : Cache::rememberForever('blocks', function() { |
|
| 18 | 18 | return Block::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Block::orderBy('position')->get(); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | 'image' => request()->image->store('website/block', 'public'), |
| 80 | 80 | ]); |
| 81 | 81 | $image = Image::make(request()->file('image')->getRealPath()); |
| 82 | - $image->save(public_path('storage/' . $block->image)); |
|
| 82 | + $image->save(public_path('storage/'.$block->image)); |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
@@ -39,23 +39,10 @@ |
||
| 39 | 39 | $id = $this->block->id ?? ''; |
| 40 | 40 | |
| 41 | 41 | return [ |
| 42 | -<<<<<<< HEAD |
|
| 42 | +<< << <<< HEAD |
|
| 43 | 43 | 'code' => 'required|max:255|unique:blocks,code,' . $id, |
| 44 | 44 | 'type' => 'required|max:255', |
| 45 | 45 | 'name' => 'required|max:255|unique:blocks,name,' . $id, |
| 46 | 46 | ======= |
| 47 | 47 | 'code' => 'required|max:255|unique:blocks,code,'.$id, |
| 48 | - 'name' => 'required|max:255|unique:blocks,name,'.$id, |
|
| 49 | ->>>>>>> 03ed8c22796652ffecb9c7cedb0423656ccc6e3b |
|
| 50 | - 'image' => 'nullable|file|image|max:3000', |
|
| 51 | - 'version' => 'required|numeric|max:60', |
|
| 52 | - 'theme' => 'nullable|numeric|max:60', |
|
| 53 | - 'page' => 'nullable|max:255', |
|
| 54 | - 'location' => 'required|max:255', |
|
| 55 | - 'position' => 'sometimes|numeric', |
|
| 56 | - 'body' => 'nullable|max:55000', |
|
| 57 | - 'setting' => 'nullable', |
|
| 58 | - 'active' => 'sometimes|boolean', |
|
| 59 | - ]; |
|
| 60 | - } |
|
| 61 | -} |
|
| 48 | + 'name' => 'required|max:255|unique:blocks,name,'.$id |
|
| 62 | 49 | \ No newline at end of file |