| 1 | <?php |
||
| 10 | class SettingController extends BaseApiController |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Path of the sotre form request. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $storeFormRequest = 'App\Modules\Core\Http\Requests\StoreSetting'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Path of the model resource |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $modelResource = 'App\Modules\Core\Http\Resources\Setting'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Init new object. |
||
| 28 | * |
||
| 29 | * @param SettingService $service |
||
| 30 | * @return void |
||
|
|
|||
| 31 | */ |
||
| 32 | public function __construct(SettingService $service) |
||
| 33 | { |
||
| 34 | parent::__construct($service); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Save list of settings. |
||
| 39 | * |
||
| 40 | * @param Request $request |
||
| 41 | * @return \Illuminate\Http\Response |
||
| 42 | */ |
||
| 43 | public function saveMany(Request $request) |
||
| 47 | } |
||
| 48 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.