@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexPackage() |
| 14 | 14 | { |
| 15 | 15 | $packages = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function () { |
|
| 16 | + ? (Cache::has('packages') ? Cache::get('packages') : Cache::rememberForever('packages', function() { |
|
| 17 | 17 | return Package::orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Package::orderBy('position')->get(); |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public function indexProject() |
| 14 | 14 | { |
| 15 | 15 | $projects = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function () { |
|
| 16 | + ? (Cache::has('projects') ? Cache::get('projects') : Cache::rememberForever('projects', function() { |
|
| 17 | 17 | return Project::latest()->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Project::latest()->get(); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | { |
| 66 | 66 | if (request()->image) { |
| 67 | 67 | $thumbnails = [ |
| 68 | - 'storage' => 'website/project/' . validImageFolder($project->type, 'post'), |
|
| 68 | + 'storage' => 'website/project/'.validImageFolder($project->type, 'post'), |
|
| 69 | 69 | 'width' => '1200', |
| 70 | 70 | 'height' => '630', |
| 71 | 71 | 'quality' => '100', |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function indexTestimonial() |
| 15 | 15 | { |
| 16 | 16 | $testimonials = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function () { |
|
| 17 | + ? (Cache::has('testimonials') ? Cache::get('testimonials') : Cache::rememberForever('testimonials', function() { |
|
| 18 | 18 | return Testimonial::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Testimonial::orderBy('position')->get(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | 'image' => request()->image->store('website/testimonial', 'public'), |
| 69 | 69 | ]); |
| 70 | 70 | $image = Image::make(request()->file('image')->getRealPath()); |
| 71 | - $image->save(public_path('storage/' . $testimonial->image)); |
|
| 71 | + $image->save(public_path('storage/'.$testimonial->image)); |
|
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexVideo() |
| 15 | 15 | { |
| 16 | 16 | $videos = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function () { |
|
| 17 | + ? (Cache::has('videos') ? Cache::get('videos') : Cache::rememberForever('videos', function() { |
|
| 18 | 18 | return Video::orderBy('position')->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Video::orderBy('position')->get(); |
@@ -18,15 +18,15 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::boot(); |
| 20 | 20 | |
| 21 | - static::saving(function () { |
|
| 21 | + static::saving(function() { |
|
| 22 | 22 | self::cacheKey(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - static::deleting(function () { |
|
| 25 | + static::deleting(function() { |
|
| 26 | 26 | self::cacheKey(); |
| 27 | 27 | }); |
| 28 | 28 | |
| 29 | - Video::creating(function ($model) { |
|
| 29 | + Video::creating(function($model) { |
|
| 30 | 30 | $model->position = Video::max('position') + 1; |
| 31 | 31 | }); |
| 32 | 32 | } |
@@ -17,15 +17,15 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::boot(); |
| 19 | 19 | |
| 20 | - static::saving(function () { |
|
| 20 | + static::saving(function() { |
|
| 21 | 21 | self::cacheKey(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - static::deleting(function () { |
|
| 24 | + static::deleting(function() { |
|
| 25 | 25 | self::cacheKey(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Testimonial::creating(function ($model) { |
|
| 28 | + Testimonial::creating(function($model) { |
|
| 29 | 29 | $model->position = Testimonial::max('position') + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -17,15 +17,15 @@ |
||
| 17 | 17 | { |
| 18 | 18 | parent::boot(); |
| 19 | 19 | |
| 20 | - static::saving(function () { |
|
| 20 | + static::saving(function() { |
|
| 21 | 21 | self::cacheKey(); |
| 22 | 22 | }); |
| 23 | 23 | |
| 24 | - static::deleting(function () { |
|
| 24 | + static::deleting(function() { |
|
| 25 | 25 | self::cacheKey(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | - Package::creating(function ($model) { |
|
| 28 | + Package::creating(function($model) { |
|
| 29 | 29 | $model->position = Package::max('position') + 1; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('testimonials', function (Blueprint $table) { |
|
| 16 | + Schema::create('testimonials', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('code')->unique(); |
| 19 | 19 | $table->string('name'); |