Created
October 7, 2017 19:26
-
-
Save mmarin49/a8ca4cd2e1a9a0abdafa789f5ba254d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace PizzaApp\Http\Controllers\Admin; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use PizzaApp\Http\Controllers\Controller; | |
use PizzaApp\Ingredient; | |
class IngredientController extends Controller | |
{ | |
/** | |
* Display a listing of the resource. | |
* | |
* @return \Illuminate\Http\Response | |
*/ | |
public function index() | |
{ | |
return view('admin.ingredients.index', [ | |
"ingredients" => Ingredient::paginate(2) | |
]); | |
} | |
/** | |
* Show the form for creating a new resource. | |
* | |
* @return \Illuminate\Http\Response | |
*/ | |
public function create() | |
{ | |
$ingredient= new Ingredient; | |
return view('admin.ingredients.create')->withIngredient($ingredient); | |
} | |
/** | |
* Store a newly created resource in storage. | |
* | |
* @param Requests\IngredientRequest $ingredientRequest | |
* @return \Illuminate\Http\Response | |
* @internal param \Illuminate\Http\Request $request | |
*/ | |
public function store(Requests\IngredientRequest $ingredientRequest) | |
{ | |
} | |
/** | |
* Display the specified resource. | |
* | |
* @param int $id | |
* @return \Illuminate\Http\Response | |
*/ | |
public function show($id) | |
{ | |
// | |
} | |
/** | |
* Show the form for editing the specified resource. | |
* | |
* @param int $id | |
* @return \Illuminate\Http\Response | |
*/ | |
public function edit($id) | |
{ | |
// | |
} | |
/** | |
* Update the specified resource in storage. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param int $id | |
* @return \Illuminate\Http\Response | |
*/ | |
public function update(Request $request, $id) | |
{ | |
// | |
} | |
/** | |
* Remove the specified resource from storage. | |
* | |
* @param int $id | |
* @return \Illuminate\Http\Response | |
*/ | |
public function destroy($id) | |
{ | |
// | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment