Laravel HTML Table Generator

Posted 1 year ago by packy

Is there any good HTML table generators for Laravel? I found that generates a table great by passing in my model from the controller and spitting it out in the blade template but there is no way to and a link in the table. I would image for building a CRUD admin there would be some solution where I can pass in a model like Users in a controller:

$model  = 'App\User';
        $title  = ['Name'];
        $fields = ['name'];

        return view('admin.dashboard',
            'title' => $title,
            'model' => $model,
            'fields' => $fields

then in the view spit out a table with a link to the id:

{!! Table::generateTableFromModel(

            {{ Table::links() }}

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.