public function user_posts($id)
 {
     $posts = Posts::where('author_id', $id)->where('active', '1')->orderBy('created_at', 'desc')->paginate(5);
     $title = User::find($id)->name;
     $mydata = Category::where('status', 'y')->paginate(15);
     $posts->setPath('posts');
     return view('Blog::home')->withPosts($posts)->withTitle($title)->with('mydata', $mydata);
 }
 /**
  * Description: Return dynamic catefory for bind menu
  * By: Dhara
  * Date: 2-6-2016
  * @return type
  */
 public static function getCategoryMenu()
 {
     $cat = \App\Modules\Blog\Models\Category::where('status', 'y')->paginate(15);
     return $cat;
 }