@@ -195,7 +195,7 @@ |
||
195 | 195 | { |
196 | 196 | $search = $this->search ?? null; |
197 | 197 | if ($search != '') { |
198 | - return Post::where(function ($query) use ($search) { |
|
198 | + return Post::where(function($query) use ($search) { |
|
199 | 199 | $query->where('name', 'LIKE', '%'.$search.'%') |
200 | 200 | ->orWhere('excerpt', 'LIKE', '%'.$search.'%') |
201 | 201 | ->orWhere('seo_name', 'LIKE', '%'.$search.'%') |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function featuredChanged(Post $post) |
15 | 15 | { |
16 | 16 | $post->update([ |
17 | - 'featured' => ! $post->featured, |
|
17 | + 'featured' => !$post->featured, |
|
18 | 18 | ]); |
19 | 19 | |
20 | 20 | $this->post = $post; |
@@ -13,7 +13,7 @@ |
||
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(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexCounter() |
14 | 14 | { |
15 | 15 | $counters = config('adminetic.caching', true) |
16 | - ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function () { |
|
16 | + ? (Cache::has('counters') ? Cache::get('counters') : Cache::rememberForever('counters', function() { |
|
17 | 17 | return Counter::latest()->get(); |
18 | 18 | })) |
19 | 19 | : Counter::latest()->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexFaq() |
14 | 14 | { |
15 | 15 | $faqs = config('adminetic.caching', true) |
16 | - ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function () { |
|
16 | + ? (Cache::has('faqs') ? Cache::get('faqs') : Cache::rememberForever('faqs', function() { |
|
17 | 17 | return Faq::latest()->get(); |
18 | 18 | })) |
19 | 19 | : Faq::latest()->get(); |
@@ -18,11 +18,11 @@ |
||
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 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('events', function (Blueprint $table) { |
|
16 | + Schema::create('events', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->string('code')->unique(); |
19 | 19 | $table->string('name')->unique(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function indexGallery() |
16 | 16 | { |
17 | 17 | $galleries = config('adminetic.caching', true) |
18 | - ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function () { |
|
18 | + ? (Cache::has('galleries') ? Cache::get('galleries') : Cache::rememberForever('galleries', function() { |
|
19 | 19 | return Gallery::latest()->get(); |
20 | 20 | })) |
21 | 21 | : Gallery::latest()->get(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function indexPage() |
14 | 14 | { |
15 | 15 | $pages = config('adminetic.caching', true) |
16 | - ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function () { |
|
16 | + ? (Cache::has('pages') ? Cache::get('pages') : Cache::rememberForever('pages', function() { |
|
17 | 17 | return Page::orderBy('position')->get(); |
18 | 18 | })) |
19 | 19 | : Page::orderBy('position')->get(); |