toshim45/laravel-reverse-mysql is a Laravel package for generate crud from mysql table.
It currently has 0 GitHub stars and 148 downloads on Packagist (latest version v0.3.1).
Install it with composer require toshim45/laravel-reverse-mysql.
Discover more Laravel packages by toshim45
or browse all Laravel packages to compare alternatives.
Last updated
laravel package, basically reverse field from mysql into controller + views, just like crud generator, but with your theme, just provide the stubs.
composer require toshim45/laravel-reverse-mysql
then publish the stubs
php artisan vendor:publish --provider="Toshim45\LaravelReverseMysql\ServiceProvider" --tag=stubs-bootstrap5
your stubs will be placed in resources folder, edit as you need, simple stubs provided for you, for simplest stub use --tag=stubs, also for other stubs see example stubs below.
Do all generation before you add some codes to your new model & controller
php artisan make:model {ModelName} -mcr options, make sure your model name is singular PascalCasephp artisan reverse:mysql {table-name} -c -r , table name is usually plural snake_case--hard-reset to replace all table related MVC files, use it if neededphpfmt or other php formatterphp artisan make:model {ModelName} -mcr options, make sure your model name is singular PascalCaseresources/stubs, keep {{tableName}}, {{tableUrlName}} and {{tableContent}} variables, which is used by this generator, var {{tableFilter}} will create filter with equal query, you can change query at model class.php artisan reverse:mysql {table_name} -c -r, table name is usually plural snake_casephpfmt or other php formatterpls check github examples and copy paste folder content from one of these, into resources/stubs folder: