<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Laravel 5.7 Artisan Commands]]></title><description><![CDATA[<p dir="auto"><strong>1. General Commands</strong></p>
<pre><code class="language-markdown">#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
</code></pre>
<p dir="auto"><strong>2. Cache Commands</strong></p>
<pre><code class="language-markdown">#Flush the application cache
cache:clear

#Remove an item from the cache
cache:forget

#Create a migration for the cache database table
cache:table
</code></pre>
<p dir="auto"><strong>3. Config Commands</strong></p>
<pre><code class="language-markdown">#Create a cache file for faster configuration loading
config:cache

#Remove the configuration cache file
config:clear
</code></pre>
<p dir="auto"><strong>4. DB Commands</strong></p>
<pre><code class="language-markdown">#Seed the database with records
db:seed
</code></pre>
<p dir="auto"><strong>5. Event Commands</strong></p>
<pre><code class="language-markdown">#Generate the missing events and listeners based on registration
event:generate
</code></pre>
<p dir="auto"><strong>6. Key Commands</strong></p>
<pre><code class="language-markdown">#Set the application key
key:generate
</code></pre>
<p dir="auto"><strong>7. Make Commands</strong></p>
<pre><code class="language-markdown">#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

</code></pre>
<p dir="auto"><strong>8. Migrate Commands</strong></p>
<pre><code class="language-markdown">#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
</code></pre>
<p dir="auto"><strong>9. Notification Commands</strong></p>
<pre><code class="language-markdown">#Create a migration for the notifications table
notifications:table
</code></pre>
<p dir="auto"><strong>9. Package Commands</strong></p>
<pre><code class="language-markdown">#Rebuild the cached package manifest
package:discover
</code></pre>
<p dir="auto"><strong>10. Queue Commands</strong></p>
<pre><code class="language-markdown">#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
</code></pre>
<p dir="auto"><strong>11. Route Commands</strong></p>
<pre><code class="language-markdown">#Create a route cache file for faster route registration
route:cache 

#Remove the route cache file
route:clear

#List all registered routes
route:list
</code></pre>
<p dir="auto"><strong>12. Schedule Commands</strong></p>
<pre><code class="language-markdown">#Run the scheduled commands
schedule:run
</code></pre>
<p dir="auto"><strong>13. Session Commands</strong></p>
<pre><code class="language-markdown">#Create a migration for the session database table
session:table
</code></pre>
<p dir="auto"><strong>14. Storage Commands</strong></p>
<pre><code class="language-markdown">#Create a symbolic link from "public/storage" to "storage/app/public"
storage:link
</code></pre>
<p dir="auto"><strong>15. Vendor Commands</strong></p>
<pre><code class="language-markdown">#Publish any publishable assets from vendor packages
vendor:publish
</code></pre>
<p dir="auto"><strong>16. View Commands</strong></p>
<pre><code class="language-markdown">#Compile all of the application's Blade templates
view:cache

#Clear all compiled view files
view:clear
</code></pre>
]]></description><link>https://lankadevelopers.lk/topic/24/laravel-5-7-artisan-commands</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 07:10:08 GMT</lastBuildDate><atom:link href="https://lankadevelopers.lk/topic/24.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2018 05:01:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Laravel 5.7 Artisan Commands on Fri, 30 Nov 2018 09:22:13 GMT]]></title><description><![CDATA[<p dir="auto">thanks <a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/5">@Danuva</a> &amp; <a class="plugin-mentions-user plugin-mentions-a" href="https://lankadevelopers.lk/uid/9">@thilanka</a></p>
]]></description><link>https://lankadevelopers.lk/post/129</link><guid isPermaLink="true">https://lankadevelopers.lk/post/129</guid><dc:creator><![CDATA[fern]]></dc:creator><pubDate>Fri, 30 Nov 2018 09:22:13 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel 5.7 Artisan Commands on Fri, 30 Nov 2018 08:46:41 GMT]]></title><description><![CDATA[<p dir="auto">නියමයි...!!!</p>
]]></description><link>https://lankadevelopers.lk/post/127</link><guid isPermaLink="true">https://lankadevelopers.lk/post/127</guid><dc:creator><![CDATA[thilanka]]></dc:creator><pubDate>Fri, 30 Nov 2018 08:46:41 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel 5.7 Artisan Commands on Thu, 29 Nov 2018 16:47:46 GMT]]></title><description><![CDATA[<p dir="auto">Fatta bro.</p>
]]></description><link>https://lankadevelopers.lk/post/124</link><guid isPermaLink="true">https://lankadevelopers.lk/post/124</guid><dc:creator><![CDATA[Danuva]]></dc:creator><pubDate>Thu, 29 Nov 2018 16:47:46 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel 5.7 Artisan Commands on Thu, 29 Nov 2018 07:15:42 GMT]]></title><description><![CDATA[<p dir="auto">welcome bro...</p>
]]></description><link>https://lankadevelopers.lk/post/122</link><guid isPermaLink="true">https://lankadevelopers.lk/post/122</guid><dc:creator><![CDATA[fern]]></dc:creator><pubDate>Thu, 29 Nov 2018 07:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to Laravel 5.7 Artisan Commands on Thu, 29 Nov 2018 06:06:31 GMT]]></title><description><![CDATA[<p dir="auto">Thnx bro... simple n clean</p>
]]></description><link>https://lankadevelopers.lk/post/121</link><guid isPermaLink="true">https://lankadevelopers.lk/post/121</guid><dc:creator><![CDATA[root]]></dc:creator><pubDate>Thu, 29 Nov 2018 06:06:31 GMT</pubDate></item></channel></rss>