PHP code example of ghanem / ajaxblade

1. Go to this page and download the library: Download ghanem/ajaxblade library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ghanem / ajaxblade example snippets


'providers' => [
    'Ghanem\Ajaxblade\AjaxbladeServiceProvider'
];

public function show()
{
    $articles = Article::orderBy('id', 'DESC')->Paginate(20);

    return view('home',compact('articles'));
}
bash
php artisan vendor:publish