@@ 116-131 (lines=16) @@ | ||
113 | ->with('route', $this->route); |
|
114 | } |
|
115 | ||
116 | public function show($id) |
|
117 | { |
|
118 | if (!$this->entityInstance) { |
|
119 | $this->entityInstance = $this->entity->findOrFail($id); |
|
120 | } |
|
121 | ||
122 | $this->prepareFields(); |
|
123 | ||
124 | return view('crud::show') |
|
125 | ->with('type', 'show') |
|
126 | ->with('route', $this->route) |
|
127 | ->with('t', $this->texts) |
|
128 | ->with('fields', $this->fields) |
|
129 | ->with('formColsClasses', $this->formColsClasses) |
|
130 | ->with('data', $this->entityInstance); |
|
131 | } |
|
132 | ||
133 | public function create() |
|
134 | { |
|
@@ 196-212 (lines=17) @@ | ||
193 | : trans('eliurkis::crud.save_action')); |
|
194 | } |
|
195 | ||
196 | public function edit($id) |
|
197 | { |
|
198 | if (!$this->entityInstance) { |
|
199 | $this->entityInstance = $this->entity->findOrFail($id); |
|
200 | } |
|
201 | ||
202 | $this->prepareFields(); |
|
203 | ||
204 | return view('crud::create') |
|
205 | ->with('type', 'edit') |
|
206 | ->with('route', $this->route) |
|
207 | ->with('t', $this->texts) |
|
208 | ->with('fields', $this->fields) |
|
209 | ->with('formColsClasses', $this->formColsClasses) |
|
210 | ->with('links', $this->prepareLinks()) |
|
211 | ->with('data', $this->entityInstance); |
|
212 | } |
|
213 | ||
214 | public function update(Request $request, $id) |
|
215 | { |