@@ -5,5 +5,5 @@ |
||
| 5 | 5 | use Mongi\Mongicommerce\Http\Controllers\admin\DashboardController; |
| 6 | 6 | |
| 7 | 7 | //BackEnd Pages |
| 8 | -Route::get('/admin/dashboard',[DashboardController::class,'page'])->name('admin.dashboard'); |
|
| 9 | -Route::get('/admin/categoria/nuova-categoria',[AdminCategoryController::class,'page'])->name('admin.category.new'); |
|
| 8 | +Route::get('/admin/dashboard', [DashboardController::class, 'page'])->name('admin.dashboard'); |
|
| 9 | +Route::get('/admin/categoria/nuova-categoria', [AdminCategoryController::class, 'page'])->name('admin.category.new'); |
|
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | class AdminCategoryController extends Controller |
| 10 | 10 | { |
| 11 | - public function page(){ |
|
| 11 | + public function page() { |
|
| 12 | 12 | return view('mongicommerce::admin.pages.category.new_category'); |
| 13 | 13 | } |
| 14 | 14 | } |
@@ -1,20 +1,20 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -function css($name){ |
|
| 3 | +function css($name) { |
|
| 4 | 4 | return asset(config('mongicommerce.admin.css'))."/{$name}"; |
| 5 | 5 | } |
| 6 | 6 | |
| 7 | -function js($name){ |
|
| 7 | +function js($name) { |
|
| 8 | 8 | return asset(config('mongicommerce.admin.js'))."/{$name}"; |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | -function img($name){ |
|
| 11 | +function img($name) { |
|
| 12 | 12 | return asset(config('mongicommerce.admin.img'))."/{$name}"; |
| 13 | 13 | } |
| 14 | -function media($name){ |
|
| 14 | +function media($name) { |
|
| 15 | 15 | return asset(config('mongicommerce.admin.media'))."/{$name}"; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | -function webfonts($name){ |
|
| 18 | +function webfonts($name) { |
|
| 19 | 19 | return asset(config('mongicommerce.admin.webfonts'))."/{$name}"; |
| 20 | 20 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | if ($this->app->runningInConsole()) { |
| 25 | 25 | |
| 26 | 26 | $config_file = config_path('mongicommerce.php'); |
| 27 | - if(file_exists($config_file)){ |
|
| 27 | + if (file_exists($config_file)) { |
|
| 28 | 28 | File::delete($config_file); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'mongicommerce'); |
| 67 | 67 | |
| 68 | 68 | // Register the main class to use with the facade |
| 69 | - $this->app->singleton('mongicommerce', function () { |
|
| 69 | + $this->app->singleton('mongicommerce', function() { |
|
| 70 | 70 | return new Mongicommerce; |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -855,7 +855,7 @@ |
||
| 855 | 855 | <?php $link = "" ?> |
| 856 | 856 | @for($i = 1; $i <= count(Request::segments()); $i++) |
| 857 | 857 | @if($i < count(Request::segments()) & $i > 0) |
| 858 | - <?php $link .= "/" . Request::segment($i); ?> |
|
| 858 | + <?php $link .= "/".Request::segment($i); ?> |
|
| 859 | 859 | <li class="breadcrumb-item active"> <a href="<?= $link ?>">{{ ucwords(str_replace('-',' ',Request::segment($i)))}}</a> </li> > |
| 860 | 860 | @else {{ucwords(str_replace('-',' ',Request::segment($i)))}} |
| 861 | 861 | @endif |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('categories', function (Blueprint $table) { |
|
| 16 | + Schema::create('categories', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('description')->nullable(); |