error checking functional
laravel pagination successful