| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Dcat\Admin\Controllers;
- trait HasResourceActions
- {
- /**
- * Update the specified resource in storage.
- *
- * @param int $id
- *
- * @return \Illuminate\Http\Response
- */
- public function update($id)
- {
- return $this->form()->update($id);
- }
- /**
- * Store a newly created resource in storage.
- *
- * @return mixed
- */
- public function store()
- {
- return $this->form()->store();
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param int $id
- *
- * @return \Illuminate\Http\Response
- */
- public function destroy($id)
- {
- return $this->form()->destroy($id);
- }
- }
|