Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Nitipat Lowichakornthikun ( เต้ย )
seedcamp
Commits
091309bd
Commit
091309bd
authored
8 years ago
by
Nadchanon Susutlertpanya(บิว)
Browse files
Options
Download
Patches
Plain Diff
no message
parent
30185b77
master
develop
feature/page
page
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/PageController.php
+1
-10
app/Http/Controllers/PageController.php
with
1 addition
and
10 deletions
+1
-10
app/Http/Controllers/PageController.php
+
1
−
10
View file @
091309bd
...
...
@@ -38,17 +38,8 @@ class PageController extends Controller
public
function
store_post_by_page
(
Request
$request
)
{
// $data = $request->all();
// // $data->post_from = "page";
// dd($data);
// $post = Post::create($data);
$data
=
$request
->
all
();
// dd($request->all());
// $data->post_from = "page";
// dd($data('virtual_id'));
// $data['user_id']=User::where( 'id',$data['virtual_id'])->get();
// dd($data);
$data
[
'user_id'
]
=
User
::
find
(
$data
[
'virtual_id'
])
->
id
;
unset
(
$data
[
'virtual_id'
]);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets