-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from fleetbase/dev-v1.5.19
v1.5.19
- Loading branch information
Showing
15 changed files
with
276 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Http/Controllers/Internal/v1/CustomFieldValueController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Fleetbase\Http\Controllers\Internal\v1; | ||
|
||
use Fleetbase\Http\Controllers\FleetbaseController; | ||
|
||
class CustomFieldValueController extends FleetbaseController | ||
{ | ||
/** | ||
* The resource to query. | ||
* | ||
* @var string | ||
*/ | ||
public $resource = 'custom_field_value'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Fleetbase\Http\Requests\Internal; | ||
|
||
use Fleetbase\Http\Requests\FleetbaseRequest; | ||
|
||
class BulkActionRequest extends FleetbaseRequest | ||
{ | ||
/** | ||
* Determine if the user is authorized to make this request. | ||
* | ||
* @return bool | ||
*/ | ||
public function authorize() | ||
{ | ||
return $this->session()->has('user'); | ||
} | ||
|
||
/** | ||
* Get the validation rules that apply to the request. | ||
* | ||
* @return array | ||
*/ | ||
public function rules() | ||
{ | ||
return [ | ||
'ids' => ['required', 'array'], | ||
]; | ||
} | ||
|
||
/** | ||
* Get the validation rules error messages. | ||
* | ||
* @return array | ||
*/ | ||
public function messages() | ||
{ | ||
return [ | ||
'ids.required' => 'Please provide a resource ID.', | ||
'ids.array' => 'Please provide multiple resource ID\'s.', | ||
]; | ||
} | ||
} |
Oops, something went wrong.