Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table generation script + architecture guide #32

Closed
Okipa opened this issue Dec 11, 2019 · 1 comment
Closed

Table generation script + architecture guide #32

Okipa opened this issue Dec 11, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Okipa
Copy link
Owner

Okipa commented Dec 11, 2019

Setup table generation script that could be like : php artisan make:table UsersTable --model=User.

This script would generate a Table class in the app/Tables directory, in which we could configure the table generation and behaviour instead of doing it in a controller or in a service.

Once it would be done, we could call our table like this in our controller :

public function index()
{
    $table = new UsersTable($request);

    return view('templates.admin.users.index', compact('table'));
}
@Okipa Okipa added this to the 1.3 milestone Dec 11, 2019
@Okipa Okipa changed the title Setup Table generation script + architecture guide Dec 11, 2019
@Okipa Okipa self-assigned this Dec 11, 2019
@Okipa Okipa modified the milestones: 1.3, 1.* Jan 6, 2020
@Okipa Okipa added the enhancement New feature or request label Jan 6, 2020
@Okipa
Copy link
Owner Author

Okipa commented Apr 27, 2020

Done in #46

@Okipa Okipa closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant