Laravel 5.7 Artisan Commands


  • Node.js

    1. General Commands

    #Remove the compiled class file
    clear-compiled
    
    #Put the application into maintenance mode
    down
    
    #Display the current framework environment
    env
    
    #Displays help for a command	
    help
    
    #Display an inspiring quote
    inspire
    
    #Lists commands
    list
    
    #Run the database migrations
    migrate
    
    #Swap the front-end scaffolding for the application
    preset
    
    //Serve the application on the PHP development server
    serve
    
    #Interact with your application
    tinker
    
    #Bring the application out of maintenance mode
    up
    
    #Set the application namespace
    app:name
    
    #Flush expired password reset tokens
    auth-clear-resets
    

    2. Cache Commands

    #Flush the application cache
    cache:clear
    
    #Remove an item from the cache
    cache:forget
    
    #Create a migration for the cache database table
    cache:table
    

    3. Config Commands

    #Create a cache file for faster configuration loading
    config:cache
    
    #Remove the configuration cache file
    config:clear
    

    4. DB Commands

    #Seed the database with records
    db:seed
    

    5. Event Commands

    #Generate the missing events and listeners based on registration
    event:generate
    

    6. Key Commands

    #Set the application key
    key:generate
    

    7. Make Commands

    #Scaffold basic login and registration views and routes
    make:auth
    
    #Create a new channel class
    make:channel
    
    #Create a new Artisan command
    make:command
    
    #Create a new controller class
    make:controller
    
    #Create a new event class
    make:event
    
    #Create a new custom exception class
    make:exception
    
    #Create a new model factory
    make:factory
    
    #Create a new job class
    make:job
    
    #Create a new event listener class
    make:listener
    
    #Create a new email class
    make:email
    
    #Create a new middleware class
    make:middleware
    
    #Create a new migration file
    make:migration
    
    #Create a new Eloquent model class
    make:model
    
    #Create a new notification class
    make:notification
    
    #Create a new observer class
    make:observer
    
    #Create a new policy class
    make:policy
    
    #Create a new service provider class
    make:provider
    
    #Create a new form request class
    make:request
    
    #Create a new resource
    make:resource
    
    #Create a new validation rule
    make:rule
    
    #Create a new seeder class
    make:seeder
    
    #Create a new test class
    make:test
    
    

    8. Migrate Commands

    #Drop all tables and re-run all migrations
    migrate:fresh
    
    #Create the migration repository
    migrate:install
    
    #Reset and re-run all migrations
    migrate:refresh
    
    #Rollback all database migrations
    migrate:reset
    
    #Rollback the last database migration
    migrate:rollback
    
    #Show the status of each migration
    migrate:status
    

    9. Notification Commands

    #Create a migration for the notifications table
    notifications:table
    

    9. Package Commands

    #Rebuild the cached package manifest
    package:discover
    

    10. Queue Commands

    #List all of the failed queue jobs
    queue:failed
    
    #Create a migration for the failed queue jobs database table
    queue:failed-table
    
    #Flush all of the failed queue jobs
    queue:flush 
    
    #Delete a failed queue job
    queue:forget
    
    #Listen to a given queue
    queue:listen
    
    #Restart queue worker daemons after their current job
    queue:restart 
    
    #Retry a failed queue job
    queue:retry
    
    #Create a migration for the queue jobs database table
    queue:table
    
    #Start processing jobs on the queue as a daemon
    queue:work
    

    11. Route Commands

    #Create a route cache file for faster route registration
    route:cache 
    
    #Remove the route cache file
    route:clear
    
    #List all registered routes
    route:list
    

    12. Schedule Commands

    #Run the scheduled commands
    schedule:run
    

    13. Session Commands

    #Create a migration for the session database table
    session:table
    

    14. Storage Commands

    #Create a symbolic link from "public/storage" to "storage/app/public"
    storage:link
    

    15. Vendor Commands

    #Publish any publishable assets from vendor packages
    vendor:publish
    

    16. View Commands

    #Compile all of the application's Blade templates
    view:cache
    
    #Clear all compiled view files
    view:clear
    


  • Thnx bro... simple n clean


  • Node.js

    welcome bro...



  • Fatta bro.



  • නියමයි...!!!


  • Node.js

    thanks @Danuva & @thilanka