We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 73-84 (lines=12) @@ | ||
70 | * |
|
71 | * @return Response |
|
72 | */ |
|
73 | public function create() |
|
74 | { |
|
75 | $this->crud->hasAccessOrFail('create'); |
|
76 | ||
77 | // prepare the fields you need to show |
|
78 | $this->data['crud'] = $this->crud; |
|
79 | $this->data['fields'] = $this->crud->getCreateFields(); |
|
80 | $this->data['title'] = trans('backpack::crud.add').' '.$this->crud->entity_name; |
|
81 | ||
82 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
83 | return view('crud::create', $this->data); |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * Store a newly created resource in the database. |
|
@@ 188-199 (lines=12) @@ | ||
185 | * |
|
186 | * @return Response |
|
187 | */ |
|
188 | public function show($id) |
|
189 | { |
|
190 | $this->crud->hasAccessOrFail('show'); |
|
191 | ||
192 | // get the info for that entry |
|
193 | $this->data['entry'] = $this->crud->getEntry($id); |
|
194 | $this->data['crud'] = $this->crud; |
|
195 | $this->data['title'] = trans('backpack::crud.preview').' '.$this->crud->entity_name; |
|
196 | ||
197 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
198 | return view('crud::show', $this->data); |
|
199 | } |
|
200 | ||
201 | /** |
|
202 | * Remove the specified resource from storage. |