diff --git a/src/App/BluelinesCategory.php b/src/App/BluelinesCategory.php
index <HASH>..<HASH> 100644
--- a/src/App/BluelinesCategory.php
+++ b/src/App/BluelinesCategory.php
@@ -16,8 +16,19 @@
 

         protected $fillable = ["name", "description", "image"];

 

-        public function content() {

+        public function content()

+        {

             return $this->belongsToMany(Blueline::class);

         }

 

+        /**

+         * @param        $query

+         * @param        $category_id

+         * @return mixed

+         */

+        public function scopeWithPost($query, $category_id)

+        {

+            return $query->with('content')->where('id', $category_id);

+        }

+

     }
Feature -- add scopeWithPost method to BluelinesCategory model