Commit 091309bd authored by Nadchanon Susutlertpanya(บิว)'s avatar Nadchanon Susutlertpanya(บิว)
Browse files

no message

No related merge requests found
Showing with 1 addition and 10 deletions
+1 -10
......@@ -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']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment