Tag : Manual

ItSolutionStuff.com have tutorials for Manual tag, here you can study articles of Manual tag, Manual tag posts collection, most popular and useful tutorials of Manual tag, here you can find list of all relevant posts and example about Manual tag, we have lists of tutorials and examples about Manual tag. very simple and quick example collection of Latest Manual tag.

Laravel 5 manual pagination with array example

If you neeed to create custom pagination of your array, you can learn from this post. basically we are doing pagination with model or DB facade like "User::paginate(10)" OR "DB::table('users')->paginate(10)". But now if you have new array and you want to make pagination on your array then you can also give using "LengthAwarePaginator" class see following example: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> public function myData($userid) { $data = static::get(); <br/> $result = []; if(!empty($data)){ foreach ($data as $key => $value) { .....

By Hardik Savani | March 21, 2016 | | 49568 Viewer | Category : Laravel