Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

load more data on button click in laravel

<?php
 
namespace AppHttpControllers;
 
use IlluminateSupportFacadesDB;
use AppHttpControllersController;
 
class UserController extends Controller
{
    /**
     * Show all of the users for the application.
     *
     * @return Response
     */
    public function index()
    {
        $users = DB::table('users')->paginate(15);
 
        return view('user.index', ['users' => $users]);
    }
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #load #data #button #click #laravel
ADD COMMENT
Topic
Name
6+6 =