We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -4,12 +4,9 @@ |
||
| 4 | 4 | use Illuminate\Routing\Controller as BaseController; |
| 5 | 5 | use Illuminate\Foundation\Validation\ValidatesRequests; |
| 6 | 6 | use Illuminate\Http\Request; |
| 7 | -use Crypt; |
|
| 8 | -use Illuminate\Support\Facades\Form as Form; |
|
| 9 | 7 | use Alert; |
| 10 | 8 | |
| 11 | 9 | // VALIDATION: change the requests to match your own file names if you need form validation |
| 12 | -use Backpack\CRUD\app\Http\Requests\CrudRequest as StoreRequest; |
|
| 13 | 10 | use Backpack\CRUD\app\Http\Requests\CrudRequest as UpdateRequest; |
| 14 | 11 | |
| 15 | 12 | class CrudController extends BaseController { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | * Store a newly created resource in the database. |
| 107 | 107 | * |
| 108 | 108 | * @param StoreRequest $request - type injection used for validation using Requests |
| 109 | - * @return Response |
|
| 109 | + * @return \Illuminate\Http\RedirectResponse |
|
| 110 | 110 | */ |
| 111 | 111 | public function storeCrud(StoreRequest $request = null) |
| 112 | 112 | { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * Update the specified resource in the database. |
| 183 | 183 | * |
| 184 | 184 | * @param UpdateRequest $request - type injection used for validation using Requests |
| 185 | - * @return Response |
|
| 185 | + * @return \Illuminate\Http\RedirectResponse |
|
| 186 | 186 | */ |
| 187 | 187 | public function updateCrud(UpdateRequest $request = null) |
| 188 | 188 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | * Remove the specified resource from storage. |
| 236 | 236 | * |
| 237 | 237 | * @param int $id |
| 238 | - * @return Response |
|
| 238 | + * @return string |
|
| 239 | 239 | */ |
| 240 | 240 | public function destroy($id) |
| 241 | 241 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Backpack\CRUD; |
| 3 | 3 | |
| 4 | 4 | use Illuminate\Support\ServiceProvider; |
| 5 | -use Illuminate\Routing\Router; |
|
| 6 | 5 | use Route; |
| 7 | 6 | |
| 8 | 7 | class CrudServiceProvider extends ServiceProvider |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * Return the entity with fake fields as attributes. |
| 69 | 69 | * |
| 70 | 70 | * @param array $columns - the database columns that contain the JSONs |
| 71 | - * @return obj |
|
| 71 | + * @return CrudTrait |
|
| 72 | 72 | */ |
| 73 | 73 | public function withFakes($columns = []) |
| 74 | 74 | { |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php namespace Backpack\CRUD; |
| 2 | 2 | |
| 3 | -use Illuminate\Database\Eloquent\Model; |
|
| 4 | 3 | use DB; |
| 5 | 4 | use Lang; |
| 6 | 5 | |