Pagination Errors In Laravel/->get()->paginate(); not working

By | May 11, 2016

If we use ->get()->paginate() it will always throw the error like as below

“BadMethodCallException in Macroable.php line 81: Method paginate does not exist,”

See the usage in the below sample code

Above script will not work.if you are using paginate() then no need to use tge get() function in the query.So correct format is,