public function store(Request $request)
 {
     $category = Category::create($request->all());
     return Redirect::to('category');
 }
Exemplo n.º 2
0
 public function create()
 {
     $category = Category::lists('title', 'id');
     return view('song.create')->with('category', $category);
 }