1 | <?php namespace Arcanesoft\Pages\Http\Controllers\Back; |
||
12 | class PagesController extends Controller |
||
13 | { |
||
14 | /* ------------------------------------------------------------------------------------------------ |
||
15 | | Properties |
||
16 | | ------------------------------------------------------------------------------------------------ |
||
17 | */ |
||
18 | /** |
||
19 | * The post model. |
||
20 | * |
||
21 | * @var \Arcanesoft\Pages\Models\Page |
||
22 | */ |
||
23 | private $page; |
||
24 | |||
25 | /* ------------------------------------------------------------------------------------------------ |
||
26 | | Constructor |
||
27 | | ------------------------------------------------------------------------------------------------ |
||
28 | */ |
||
29 | /** |
||
30 | * Instantiate the controller. |
||
31 | * |
||
32 | * @param \Arcanesoft\Pages\Models\Page $page |
||
33 | */ |
||
34 | public function __construct(Page $page) |
||
43 | |||
44 | /* ------------------------------------------------------------------------------------------------ |
||
45 | | Main Functions |
||
46 | | ------------------------------------------------------------------------------------------------ |
||
47 | */ |
||
48 | /** |
||
49 | * List all pages. |
||
50 | * |
||
51 | * @param bool $trashed |
||
52 | * |
||
53 | * @return \Illuminate\View\View |
||
54 | */ |
||
55 | public function index($trashed = false) |
||
66 | |||
67 | public function add() |
||
71 | |||
72 | public function create() |
||
76 | |||
77 | public function show($id) |
||
81 | |||
82 | public function edit($id) |
||
86 | |||
87 | public function update($id) |
||
91 | |||
92 | public function delete($id) |
||
96 | } |
||
97 |