| 1 | <?php |
||
| 11 | class ActorsController extends Controller |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Page Acceuil. |
||
| 15 | */ |
||
| 16 | public function index() |
||
| 17 | { |
||
| 18 | $actors = Actors::all(); |
||
| 19 | // vue |
||
| 20 | return view('Actors/index', [ |
||
| 21 | |||
| 22 | 'actors' => $actors, |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Page Read. |
||
| 28 | * |
||
| 29 | * @param $id |
||
| 30 | * |
||
| 31 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
||
| 32 | */ |
||
| 33 | public function read($id) |
||
|
|
|||
| 34 | { |
||
| 35 | |||
| 36 | // vue |
||
| 37 | return view('Actors/read'); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Page Acceuil. |
||
| 42 | */ |
||
| 43 | public function create() |
||
| 44 | { |
||
| 45 | return view('Actors/create'); |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Page Acceuil. |
||
| 50 | */ |
||
| 51 | public function edit($id) |
||
| 52 | { |
||
| 53 | return view('Actors/edit'); |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Page Acceuil. |
||
| 58 | */ |
||
| 59 | public function delete($id) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Action d'enregistrement en base de données |
||
| 65 | * depuis mon formulaire |
||
| 66 | * Classe Request permet de réceptionner les données |
||
| 67 | * en POST de manières scurisés. |
||
| 68 | */ |
||
| 69 | public function store(Request $request) |
||
| 72 | } |
||
| 73 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.