Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
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
laravel-adminpanel
Commits
19c69ed5
Commit
19c69ed5
authored
Mar 13, 2018
by
cygnet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
git://github.com/viralsolani/laravel-adminpanel
into develop
parents
30418788
960ad582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
FaqsController.php
app/Http/Controllers/Api/V1/FaqsController.php
+9
-11
No files found.
app/Http/Controllers/Api/V1/FaqsController.php
View file @
19c69ed5
...
...
@@ -68,10 +68,10 @@ class FaqsController extends APIController
}
/**
* Update Faq
*
* @param Faq
$faq
* @param Request
$request
* Update Faq
.
*
* @param Faq $faq
* @param Request $request
*
* @return \Illuminate\Http\JsonResponse
*/
...
...
@@ -90,13 +90,11 @@ class FaqsController extends APIController
return
new
FaqsResource
(
$faq
);
}
/**
* Delete Faq
*
* @param Faq
$faq
* @param Request
$request
* Delete Faq
.
*
* @param Faq $faq
* @param Request $request
*
* @return \Illuminate\Http\JsonResponse
*/
...
...
@@ -120,7 +118,7 @@ class FaqsController extends APIController
{
$validation
=
Validator
::
make
(
$request
->
all
(),
[
'question'
=>
'required|max:191'
,
'answer'
=>
'required'
,
'answer'
=>
'required'
,
]);
return
$validation
;
...
...
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