clock  Mon - Sun 8.00 AM - 8.00 PM
play store

Artisan Commands in Laravel

writter  Sumit Dey Sarkar
Date  22 Mar 2023
Language  Laravel
Artisan Commands in Laravel

Artisan Commands in Laravel

In this tutorial we will learn artisan commands in Laravel.


Artisan commands in laravel

In Laravel, artisan is the command-line interface included with the framework. Artisan provides a number of helpful commands for managing your Laravel application.


Here are some of the most commonly used artisan commands:

1) php artisan serve - Start the development server.


2) php artisan make:model ModelName - Create a new Eloquent model.


3) php artisan make:controller ControllerName - Create a new controller.


4) php artisan make:migration create_table_name - Create a new database migration.


5) php artisan migrate - Run all outstanding database migrations.


6) php artisan tinker - Start the Laravel REPL.


7) php artisan route:list - List all registered routes.


8) php artisan make:middleware MiddlewareName - Create a new middleware.


9) php artisan cache:clear - Clear the application cache.


10) php artisan make:seeder SeederName - Create a new database seeder.


11) php artisan db:seed - Seed the database with records.


12) php artisan make:auth - Scaffold basic login and registration views and routes.


13) php artisan make:middleware MiddlewareName - Create a new middleware class.


14) php artisan make:request RequestName - Create a new form request class.


15) php artisan make:provider ProviderName - Create a new service provider.


16) php artisan make:job JobName - Create a new job class.


17) php artisan make:event EventName - Create a new event class.


18) php artisan make:listener ListenerName --event=EventName - Create a new event listener class.


19) php artisan make:mail MailName - Create a new email class.


20) php artisan make:notification NotificationName - Create a new notification class.


21) php artisan queue:work - Start processing jobs on the queue.


22) php artisan queue:listen - Listen to the queue and process jobs as they become available.


23) php artisan storage:link - Create a symbolic link from public/storage to storage/app/public.


24) php artisan make:test TestName - Create a new test class.


25) php artisan optimize - Optimize the application for faster performance.


26) php artisan config:cache - Cache the configuration files for faster performance.


27) php artisan view:clear - Clear the compiled views.


28) php artisan down - Put the application into maintenance mode.


29) php artisan up - Take the application out of maintenance mode.

Comments 0

Leave a comment

Coursera, Codeacademy, Udacity, W3Schools, Udemy, Alison, TheNewBoston, edX, P.S.Codewars,Freecodecamp, Managing technical debt blog, Scrimba, Codepen, Codepen/challenges, The Odin Project, htmlreference.​io, cssreference.​io, Frontend Mentor, Dev Challenges, MDN, Code Mentor, Coding Dojo, CSS Battle, Codier, Ace Frontend, Can I Use, CSS Tricks, 30 Seconds of Code,tutorialspoint, Neumorphism, Shaddows Brumm, Fancy Border Radius, Glow Generator, Clothoid Corners, Glassmorphism, Clipy, CSS Filters, Base64 Image, Quantity Queries, Animations, Cubic-Bezier, Keyframes, Wait Animate, Transition.Style, graphic design, web design, website design, website builder, web developer, web designer, webdesign, ecommerce website, web design company, website creator, website designer, responsive web design, web development company, best website design, web design software, web page design, build a website, web developer salary, design website, web design courses, how to design a website, web design inspiration, website layout, web designer salary, web application development, ecommerce website design, web agency, software development company, web design tutorial, web programming, design company, website design templates, what is web designing, web developer jobs, website developer, web design agency, freelance web developer, web design services, freelance web designer, graphic design websites, web solutions, ecommerce website development, free website design, web development courses, webdev, web developers, web development tools, website design services, developpeur web, web design london, website design ideas, web designing and programming, design a website, web design and development, web dev, web development services, homepage design, best designed websites, cheap website design, learn web design, web design templates, web design tools, web design jobs, website design inspiration, web design india, flash website, website developers, designer websites, website services, website design cost, good website design, site design, simple website design, cool website designs, modern website design, graphic designer websites, webcode, best web design software, website making, free web design software, mobile website design, learn web development, front end web developer, how to become a web developer, web developer portfolio, web development company in india, python web development, web development tutorial, website company, website design and development, web company, webdesigning, professional website design, affordable web design, best web design company, creative web design, top website designs, website design pricing, web developer tools, how to develop a website