Completed
Push — master ( 0fb4a8...25f8d8 )
by tac
03:20
created
src/models/Article.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         return $query->where('title', 'like', '%'.$value.'%')
34 34
             ->orWhere('body', 'like', '%'.$value.'%')
35
-            ->orWhereHas('author', function ($q) use ($value) {
35
+            ->orWhereHas('author', function($q) use ($value) {
36 36
                 $q->whereRaw(" CONCAT(firstname, ' ', lastname) like ?", array("%".$value."%"));
37
-            })->orWhereHas('categories', function ($q) use ($value) {
37
+            })->orWhereHas('categories', function($q) use ($value) {
38 38
                 $q->where('name', 'like', '%'.$value.'%');
39 39
             });
40 40
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::boot();
45 45
 
46
-        static::deleting(function ($article) {
46
+        static::deleting(function($article) {
47 47
             $article->detail()->delete();
48 48
             if ($article->photo) {
49 49
                 @unlink(public_path().'/uploads/demo/'.$article->photo);
Please login to merge, or discard this patch.