starkyz said: success: function(response) { alert(response.data.data.key1); } I would say it's...
Make sure you have enabled the right version of php. Some hosting providers have 5.5 (or higher) ver...
Or simply: if(Auth::check() && Auth::user()->id)
Try with: $material = Material::with('category')->find(2);
Try with the name "_token" than "csrf-token"
The Laravel portal for problem solving, knowledge sharing and community building.