PHP code example of jennosgroup / larables

1. Go to this page and download the library: Download jennosgroup/larables 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/ */

    

jennosgroup / larables example snippets




namespace App\Tables;

use App\Models\Post;
use Larables\Table;

class PostsTable extends Table
{

}



namespace App\Http\Controllers;

class PostController extends Controller
{
    /**
     * Render the view for the posts listing.
     *
     * @return Illuminate\View\View
     */
    public function index()
    {
        $table = PostsTable::make();
        return view('posts.index', compact('table'));
    }
}