{"id":1296,"date":"2019-03-12T12:38:58","date_gmt":"2019-03-12T07:08:58","guid":{"rendered":"http:\/\/blog.openwebsolutions.in\/?p=1296"},"modified":"2019-03-12T12:38:58","modified_gmt":"2019-03-12T07:08:58","slug":"use-of-php-artisan-command-with-laravel-framework","status":"publish","type":"post","link":"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/","title":{"rendered":"Use of PHP Artisan command with Laravel framework"},"content":{"rendered":"<p>Laravel is a highly productive oops structure supported PHP framework. In the laravel framework, PHP artisan command is combined with the command line interface. Laravel application provides command line setup facilities where you can create and manage your project from command line.<\/p>\n<p>PHP artisan provides several numbers of commands which are very important and useful to set up and develop your application in Laravel.<\/p>\n<p>Here is the list of some of the most useful PHP artisan commands. You can type the commands in command prompt from your project base path.<\/p>\n<ul>\n<li>php artisan serve<\/li>\n<li>php artisan make<\/li>\n<li>php artisan help<\/li>\n<li>php artisan \u2013versian<\/li>\n<li>php artisan tinker<\/li>\n<li>php artisan make controller controller_name<\/li>\n<li>php artisan make modal modal_name<\/li>\n<\/ul>\n<p>For viewing all the available commands you may type the list command:<\/p>\n<pre class=\"western\"><code class=\"western\"><span style=\"color: #000000;\"><span style=\"font-family: Operator Mono, Fira Code, Consolas, Monaco, Andale Mono, monospace;\"><span style=\"font-size: small;\">\tphp artisan list<\/span><\/span><\/span><\/code><\/pre>\n<p>This command will show you the list of all php artisan commands and the way to use them.<\/p>\n<p>If you want you can also build your own custom command. You can type make:command Artisan command, for example:<\/p>\n<p>php artisan make:command UserRole<\/p>\n<p>This command will create the new class in the path by default this \u201capp\/Console\/Commands\u201d folder but if required you can change it to the custom storage path as per your preference.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is a highly productive oops structure supported PHP framework. In the laravel framework, PHP artisan command is combined with the command line interface. Laravel application provides command line setup facilities where you can create and manage your project from command line. PHP artisan provides several numbers of commands which are very important and useful [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1366,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,5,1],"tags":[71,35],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Use of PHP Artisan command with Laravel framework<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use of PHP Artisan command with Laravel framework\" \/>\n<meta property=\"og:description\" content=\"Laravel is a highly productive oops structure supported PHP framework. In the laravel framework, PHP artisan command is combined with the command line interface. Laravel application provides command line setup facilities where you can create and manage your project from command line. PHP artisan provides several numbers of commands which are very important and useful [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Openweb Solutions Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-12T07:08:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/coding-699318_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1313\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/\",\"name\":\"Openweb Solutions Blog\",\"description\":\"Transforming ideas into reality\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/openwebsolutions.in\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/coding-699318_1920.jpg\",\"width\":1920,\"height\":1313,\"caption\":\"Openweb Solutions Laravel Development\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/#webpage\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/\",\"name\":\"Use of PHP Artisan command with Laravel framework\",\"isPartOf\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/#primaryimage\"},\"datePublished\":\"2019-03-12T07:08:58+00:00\",\"dateModified\":\"2019-03-12T07:08:58+00:00\",\"author\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/c9e8df950151e1fe03f38488f3581d97\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/openwebsolutions.in\/blog\/use-of-php-artisan-command-with-laravel-framework\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/c9e8df950151e1fe03f38488f3581d97\",\"name\":\"Riddhi Dutta\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8546b50eb2e0393ceeb1be219b44173a?s=96&r=g\",\"caption\":\"Riddhi Dutta\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1296"}],"collection":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/comments?post=1296"}],"version-history":[{"count":3,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1296\/revisions"}],"predecessor-version":[{"id":1365,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1296\/revisions\/1365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media\/1366"}],"wp:attachment":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media?parent=1296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/categories?post=1296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/tags?post=1296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}