Laravel HTML Table Generator

Posted 11 months 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.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.