Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
2b1aa42e
Commit
2b1aa42e
authored
Oct 08, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming functions to respect the RESTful spec
parent
739090ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
BaseRepository.php
Repositories/BaseRepository.php
+10
-3
EloquentBaseRepository.php
Repositories/Eloquent/EloquentBaseRepository.php
+2
-2
No files found.
Repositories/BaseRepository.php
View file @
2b1aa42e
...
...
@@ -21,12 +21,19 @@ interface BaseRepository
* @param $data
* @return mixed
*/
public
function
add
(
$data
);
public
function
create
(
$data
);
/**
* @param $ids
* Update a category
* @param $id
* @param $data
* @return mixed
*/
public
function
remove
(
$ids
);
public
function
update
(
$id
,
$data
);
/**
* @param $ids
* @return mixed
*/
public
function
destroy
(
$ids
);
}
Repositories/Eloquent/EloquentBaseRepository.php
View file @
2b1aa42e
...
...
@@ -43,7 +43,7 @@ abstract class EloquentBaseRepository implements BaseRepository
* @param mixed $data
* @return mixed
*/
public
function
add
(
$data
)
public
function
create
(
$data
)
{
return
$this
->
model
->
create
(
$data
);
}
...
...
@@ -52,7 +52,7 @@ abstract class EloquentBaseRepository implements BaseRepository
* @param int|int[] $ids
* @return mixed
*/
public
function
remove
(
$ids
)
public
function
destroy
(
$ids
)
{
return
$this
->
model
->
destroy
(
$ids
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment