public function addPost() { $category = Category::all(); $details = get_user_details(Auth::user()->id); $publisher_test = Publisher::count(); $publishers = Publisher::orderBy('name', 'ASC')->get(); return View::make('contributor.addPost')->with('title', "Posts Management")->with('page', "posts")->with('details', $details)->with('publishers', $publishers)->with('publisher_test', $publisher_test)->with('category', $category); }
public function addPost() { $category = Category::all(); $details = get_user_details(Auth::user()->id); $authors = User::where('is_activated', 1)->get(); $publisher_test = Publisher::count(); $publishers = Publisher::orderBy('name', 'ASC')->get(); return View::make('moderate.addPost')->with('title', "Posts Management")->with('page', "posts")->with('details', $details)->with('category', $category)->with('publishers', $publishers)->with('publisher_test', $publisher_test)->with('authors', $authors); }