dev-master
9999999-dev https://github.com/gokhanguneygg/boostersBooster classes for Laravel
MIT
The Requires
- php >=5.6 || 7.0
- gguney/brush dev-master
The Development Requires
- php >=5.6 || 7.0
by Gokhan Guney
laravel support booster
Wallogit.com
2017 © Pedro PelĂĄez
Booster classes for Laravel
Support classes., (*1)
$ composer require gguney/boosters
Add package's service provider to your config/app.php, (*2)
...
GGuney\Boosters\BoostersProvider::class,
...
Then write this line on cmd., (*3)
$ php artisan vendor:publish
It will publish 3 files to your resources/views/vendor/boosters folder. It will place these files in components folder. 'form.blade.php' is a view file that the package will use for form building. Create and Edit. 'show.blade.php' is a view file that the package will use for Item show. 'table.blade.php' is a view file that the package will use for Index page., (*4)
Also, boosters.php into the config folder. With this config file you can change views' place., (*5)
All views also support language. First, you can select language in config/app.php, (*6)
...
'locale' => 'en',
...
And inside resources/lang/your_locale_name create general.php, (*7)
<?php
return [
'Create' => 'Ekle',
'Edit' => 'DĂŒzenle',
'Update' => 'GĂŒncelle',
'Delete' => 'Sil',
'Show' => 'Göster',
'Users' => 'Kullanıcılar',
];
?>
This way package will translate the words to you language. Also, You have to add few lines to you app.blade.php so package can work fully operational., (*8)
... <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.13/css/jquery.dataTables.css"> ... ...
$ php artisan make:boostedController YourModelName --g
YourModelName variable is the name of your model. --g (optional) option is general controller option., (*9)
This command will create a controller with booster abilities. If you don't need special changes for your model you can create just 1 general controller and route all these models to this general controller., (*10)
Gökhan GĂŒney - gokhanguneygg@gmail.com
, (*11)
Boosters is licensed under the MIT License - see the LICENSE file for details, (*12)
Booster classes for Laravel
MIT
laravel support booster