I'm trying to access the 'App \ Http \ Controllers \ ReportController @ store' URL from la http, but the route does not load or can not be found, with php artisan route: list it appears to me that it is the route ... How can I access that route or how can I access any route as long as it helps me download data from bd?
Angular Code
app.controller('DatosController', function ($scope,$http)
{
$scope.consultDate = function ()
{
$http({
method: 'GET',
url: 'App\Http\Controllers\ReportController@store'
})
.then(function ( { data })
{
// hacer algo con el array de datos
},
function (response)
{
// callback de error
console.error(response.statusText);
});
};
});
Laravel Code
public function store(Request $request)
{
return "Algo";
}