Open sidebar
Route::get('/count', 'CountCtrl@count'); CountCtrl extends WhateverCtrl { public function count(){ return Response::json(array('count' => 10)); } } $.get('/count', function(json){ $('#anything').html(json.count); })
Close sidebar
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
Twitter
GitHub
Use setting