Laravel.io
	module.factory('UserDetailsFactory', function ($resource) {
	    return $resource('http://api.local/user/:id', {}, {
	        show: { method: 'GET' },
	        update: { method: 'PUT', params: {id: '@id'} },
	        delete: { method: 'DELETE', params: {id: '@id'} }
	    })
	});




		$scope.userStatus = function(data) {
			console.log(data)
		}

Please note that all pasted data is publicly available.