Tag : Manual


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 | | 14394 Viewer | Category : Laravel
READ MORE

    Laravel 5 mailchimp api integration from scratch with example

    Laravel 5 mailchimp api integration from scratch with example

    Open Post

    Paypal payment gateway integration in php source code example

    Paypal payment gateway integration in php source code example

    Open Post

    Laravel 5.3 - whereDate(), whereMonth(), whereDay() and whereYear() examples.

    Laravel 5.3 - whereDate(), whereMonth(), whereDay() and whereYear() examples.

    Open Post

    How to get gravatar image from email using Jquery?

    How to get gravatar image from email using Jquery?

    Open Post

    Custom User Log Activity in Laravel 5 App Example

    Custom User Log Activity in Laravel 5 App Example

    Open Post

    How to make simple dependent dropdown using jquery ajax in Laravel 5?

    How to make simple dependent dropdown using jquery ajax in Laravel 5?

    Open Post