2017 © Pedro PelĂĄez
 

library boosters

Booster classes for Laravel

image

gguney/boosters

Booster classes for Laravel

  • Saturday, April 29, 2017
  • by gguney
  • Repository
  • 1 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Booster

Support classes., (*1)

Installation

$ composer require gguney/boosters

Preparation

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">

...


...

Usage

$ 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)

Author

Gökhan GĂŒney - gokhanguneygg@gmail.com
, (*11)

License

Boosters is licensed under the MIT License - see the LICENSE file for details, (*12)

The Versions

29/04 2017

dev-master

9999999-dev https://github.com/gokhanguneygg/boosters

Booster classes for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

  • php >=5.6 || 7.0

laravel support booster