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