Okipa / laravel-table

Generate tables from Eloquent models.
MIT License
532 stars 64 forks source link

Fix missing column for show route #39

Closed mostafasoufi closed 4 years ago

mostafasoufi commented 4 years ago

If you use show route it alone without edit or destroy, there is an empty column in the rows, so with this merge, it will fix.

$table = (new Table)->model(UserModel::class)->routes([
            'index' => ['name' => 'user.list'],
            'create' => ['name' => 'user.create.index'],
            'show' => ['name' => 'user.show'],
        ]);