2017 © Pedro Peláez
 

library helper-cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

image

ctf0/helper-cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  • Wednesday, July 18, 2018
  • by ctf0
  • Repository
  • 2 Watchers
  • 3 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 6 % Grown

The README.md

Laravel Helper Cmnds
Latest Stable Version Total Downloads

A helper console cmnds to speedup the usual workflow., (*1)


, (*2)

Installation

  • composer require ctf0/helper-cmnds


, (*3)

Usage

ex:clear       # Clear (Bootstrap-Files/Cache/Config/Route-Cache/View/Session/Compiled/Laravel-LogFile/Pass-Resets)
ex:finetune    # Cache (Bootstrap-Files/View/Config/Routes/Events)
ex:make        # Make (Controller/Model/Migration/Seeder/Route/View/Validation)

1- ex:clear, (*4)

  • php artisan optimize:clear
  • Cache::store('file')->flush();
  • Session::flush()
  • File::cleanDirectory(config('session.files'));
  • File::put(storage_path('logs/laravel.log'), '');
  • php artisan auth:clear-resets if the table was migrated
  • composer dump-autoload
  • an event gets fired when this command has finished in case you want to run something else after it, and you can hook into it through:, (*5)

    // app/Providers/EventServiceProvider.php
    public function boot()
    {
        parent::boot();
    
        Event::listen('clearAll.done', function () {
            // any other cmnds you want to run
        });
    }
    


, (*6)

2- ex:finetune, (*7)

  • composer dump-autoload
  • php artisan optimize
  • php artisan view:cache
  • php artisan event:cache


, (*8)

3- ex:make (for a two word className ex. SubPage, write it as sub_page), (*9)

  • Validation [y/N] Read More., (*10)

    • create 2 classes for Update & Store php artisan make:request {name}
    • register the FormRequest classes to the controller automatically
  • Controller, (*11)

    • if "Route Model Binding" we will add the Model class to the controller automatically
    • php artisan make:controller --resource
  • Model & Migration, (*12)

    • create App/Models/BaseModel.php if not found
    • create App/Models/ClassName.php
    • php artisan make:migration {name} --create
  • Seeder [y/N], (*13)

    • php artisan make:seeder
    • create a seeder file & register it under DatabaseSeeder::run().
  • Routes [y/N] Also Check, (*14)

    • creates a new folder in routes/WebRoutes/ClassName.php.
    • append a loop to web.php to include all the files from the routes/WebRoutes folder.
  • Views [y/N], (*15)

    • create a new folder in resources/views/pages/ClassName/ + files for 'index/create/show/edit'.


, (*16)

Security

If you discover any security-related issues, please email ctf0-dev@protonmail.com., (*17)

The Versions

18/07 2018

dev-master

9999999-dev https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

21/03 2018

v1.3.6

1.3.6.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 helper commands

18/03 2018

v1.3.5

1.3.5.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 helper commands

07/02 2018

v1.3.4

1.3.4.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 helper commands

17/01 2018

v1.3.3

1.3.3.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 helper commands

12/12 2017

v1.3.2

1.3.2.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 helper commands

28/09 2017

v1.3.1

1.3.1.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

28/09 2017

v1.3.0

1.3.0.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

28/09 2017

v1.2.2

1.2.2.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

31/08 2017

v1.2.1

1.2.1.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

25/08 2017

v1.2.0

1.2.0.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

laravel ctf0 laravelhelpercmnds helper commands

12/07 2017

v1.1.0

1.1.0.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 laravelhelpercmnds

24/06 2017

v1.0.0

1.0.0.0 https://github.com/ctf0/Laravel-Helper-Cmnds

Some Helper Console Cmnds For Laravel To Speedup The Usual Workflow

  Sources   Download

MIT

The Requires

 

by Muah

ctf0 laravelhelpercmnds