Support the ongoing development of Laravel.io →
Requests Input Database
Last updated 2 years ago.
0

Can you provide an example of the request. I guess it's not a fortrabbit related issue.

Last updated 2 years ago.
0

This is the angular service:

send: function (content)
	{
		return $http.post('api/v1/posts/', content);
	}

This is the controller the route goes to.

public function store()
  	{
	//
	$post = new Post;
	$post->user_id = Input::get('user_id');
	$post->type = Input::get('type');
	$post->sender = Input::get('sender');
	$post->title = Input::get('title');
	$post->content = Input::get('content');

	//validate
	$post->save();
}

Cheers

Last updated 2 years ago.
0

Don't know how or why but it is working now. Cheers

Last updated 2 years ago.
0

Great.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

FortisVoid fortisvoid Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.