Skip to content

Instantly share code, notes, and snippets.

@mmarin49
Created October 7, 2017 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmarin49/a8ca4cd2e1a9a0abdafa789f5ba254d7 to your computer and use it in GitHub Desktop.
Save mmarin49/a8ca4cd2e1a9a0abdafa789f5ba254d7 to your computer and use it in GitHub Desktop.
<?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