We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 53-64 (lines=12) @@ | ||
50 | * |
|
51 | * @return Response |
|
52 | */ |
|
53 | public function create() |
|
54 | { |
|
55 | $this->crud->hasAccessOrFail('create'); |
|
56 | ||
57 | // prepare the fields you need to show |
|
58 | $this->data['crud'] = $this->crud; |
|
59 | $this->data['fields'] = $this->crud->getCreateFields(); |
|
60 | $this->data['title'] = trans('backpack::crud.add').' '.$this->crud->entity_name; |
|
61 | ||
62 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
63 | return view('crud::create', $this->data); |
|
64 | } |
|
65 | ||
66 | ||
67 | /** |
|
@@ 146-157 (lines=12) @@ | ||
143 | * @param int $id |
|
144 | * @return Response |
|
145 | */ |
|
146 | public function show($id) |
|
147 | { |
|
148 | $this->crud->hasAccessOrFail('show'); |
|
149 | ||
150 | // get the info for that entry |
|
151 | $this->data['entry'] = $this->crud->getEntry($id); |
|
152 | $this->data['crud'] = $this->crud; |
|
153 | $this->data['title'] = trans('backpack::crud.preview').' '.$this->crud->entity_name; |
|
154 | ||
155 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
156 | return view('crud::show', $this->data); |
|
157 | } |
|
158 | ||
159 | ||
160 | /** |