Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0652fcf
commit 3c746b9
Showing
3 changed files
with
57 additions
and
10 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 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 |
---|---|---|
@@ -1,6 +1,37 @@ | ||
<?php | ||
|
||
namespace rjapi\extension; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
class BaseController extends ApiController | ||
{ | ||
|
||
/** | ||
* @param Request $request | ||
* @throws \rjapi\exceptions\AttributesException | ||
*/ | ||
public function create(Request $request) | ||
{ | ||
parent::create($request); | ||
} | ||
|
||
/** | ||
* @param Request $request | ||
* @param int|string $id | ||
* @throws \rjapi\exceptions\AttributesException | ||
*/ | ||
public function update(Request $request, $id) | ||
{ | ||
parent::update($request, $id); | ||
} | ||
|
||
/** | ||
* @param Request $request | ||
* @param int|string $id | ||
*/ | ||
public function delete(Request $request, $id) | ||
{ | ||
parent::delete($request, $id); | ||
} | ||
} |
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