public function savearticle() { $input = Request::all(); blogs::create($input); return redirect('about'); }
public function subjectBlogs($subject_id) { $blogs = blogs::where('subject_id', $subject_id)->orderBy('date', 'desc')->paginate(10); $subjects = $this->getsubjects(); return view('blog.blogpage', ['blogs' => $blogs, 'subjects' => $subjects, 'type' => $subject_id]); }