Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop

    Laravel 5.7 Artisan Commands

    Back-End Development
    laravel artisan-command
    4
    6
    1637
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fern Node.js last edited by ciaompe

      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
      
      1 Reply Last reply Reply Quote 3
      • root
        root Linux Help last edited by

        Thnx bro... simple n clean

        1 Reply Last reply Reply Quote 1
        • F
          fern Node.js last edited by

          welcome bro...

          1 Reply Last reply Reply Quote 0
          • Danuva
            Danuva last edited by

            Fatta bro.

            1 Reply Last reply Reply Quote 0
            • T
              thilanka last edited by

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

              1 Reply Last reply Reply Quote 1
              • F
                fern Node.js last edited by

                thanks @Danuva & @thilanka

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                0
                Online

                3.7k
                Users

                1.3k
                Topics

                5.3k
                Posts

                • Privacy
                • Terms & Conditions
                • Donate

                © Copyrights and All right reserved Lanka Developers Community

                Powered by Axis Technologies (PVT) Ltd

                Made with in Sri Lanka

                | |