{"id":108491,"date":"2023-12-22T11:56:14","date_gmt":"2023-12-22T16:56:14","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=108491"},"modified":"2024-05-10T10:35:10","modified_gmt":"2024-05-10T14:35:10","slug":"php-artisan","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/","title":{"rendered":"PHP Artisan &#8211; A Comprehensive Guide"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan-1024x538.png\" alt=\"PHP Artisan - A Comprehensive Guide\" class=\"wp-image-108506\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>PHP Artisan is a robust command-line tool that is pivotal in <a href=\"https:\/\/laravel.com\">Laravel<\/a> web development. Whether you are a seasoned developer or a newcomer to Laravel, comprehending and harnessing the capabilities of PHP Artisan can significantly enhance your web development workflow. This comprehensive guide aims to educate Laravel users on effectively utilizing PHP Artisan in their development workflow.<\/p>\n\n\n\n<p>Topics Include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#what\">What is PHP Artisan?<\/a><\/li>\n\n\n\n<li><a href=\"#commands\">Common PHP Artisan Commands<\/a><\/li>\n\n\n\n<li><a href=\"#controllers\">Creating Controllers<\/a><\/li>\n\n\n\n<li><a href=\"#models\">Generating Models<\/a><\/li>\n\n\n\n<li><a href=\"#migrations\">Database Migrations<\/a><\/li>\n\n\n\n<li><a href=\"#seeding\">Database Seeding<\/a><\/li>\n\n\n\n<li><a href=\"#cache\">Managing Cache<\/a><\/li>\n\n\n\n<li><a href=\"#tinker\">Laravel Tinker<\/a><\/li>\n\n\n\n<li><a href=\"#scheduling\">Scheduling Artisan Commands<\/a><\/li>\n\n\n\n<li><a href=\"#conclusion\">Conclusion<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#resources\">Further Resources<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what\">What is PHP Artisan?<\/h2>\n\n\n\n<p>PHP Artisan is a command-line interface (CLI) tool that comes bundled with the Laravel PHP framework. It is based on the Symfony Console component, ensuring a robust and flexible command-line experience. With Artisan, you can automate common development tasks, generate boilerplate code, manage database migrations, and much more.<\/p>\n\n\n\n<p>Taylor Otwell, the creator of Laravel, developed Artisan to simplify and streamline the process of Laravel project development, ensuring developers can focus more on building great applications and less on repetitive tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"commands\">Common PHP Artisan Commands<\/h2>\n\n\n\n<p>Artisan commands interact with various parts of the Laravel application. Understanding <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/laravel-directory-structure-guide\/\">the structure of Laravel<\/a> helps in comprehending how these commands function.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>php artisan list<\/code> : Lists all available Artisan commands<\/li>\n\n\n\n<li><code>php artisan help [command_name]<\/code>: Displays help for a specific command.<\/li>\n\n\n\n<li><code>php artisan make:controller [ControllerName]<\/code>: Creates a new controller.<\/li>\n\n\n\n<li><code>php artisan migrate<\/code>: Runs database migrations.<\/li>\n\n\n\n<li><code>php artisan tinker<\/code>: Allows you to interact with your entire Laravel application on the command line, including Eloquent ORM, jobs, events, and more.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"controllers\">Creating Controllers <\/h2>\n\n\n\n<p>Artisan simplifies the creation of MVC components. The <code>make:controller<\/code> command generates a new controller file in the <code>app\/Http\/Controllers<\/code> directory. For example:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"php artisan make:controller UserController\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">php artisan make:controller UserController<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This command creates a <code>UserController.php<\/code> file in the aforementioned directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"models\">Generating Models<\/h2>\n\n\n\n<p>Using <code>make:model<\/code>, you can create a new Eloquent model class in the <code>app<\/code> directory:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"php artisan make:model UserModel\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">php artisan make:model UserModel<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This creates a <code>UserModel.php<\/code> file in the <code>app<\/code> directory. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"migrations\">Database Migrations<\/h2>\n\n\n\n<p>The <code>make:migration<\/code> command is used for database schema version control. It creates a new migration file in the <code>database\/migrations<\/code> directory:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"php artisan make:migration create_users_table\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #79B8FF\">php artisan make:migration create_users_table<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>After creating migrations, use <code>php artisan migrate<\/code> to apply them to your database. See <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/basics-of-laravel-migrations\/\" target=\"_blank\" rel=\"noreferrer noopener\">Basics of Laravel Migrations<\/a> for more information. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"seeding\">Database Seeding<\/h2>\n\n\n\n<p>The <code>db:seed<\/code> command runs the database seeders located in <code>database\/seeds<\/code>. It is useful for populating your database with test data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"cache\">Managing Cache<\/h2>\n\n\n\n<p>Various <code>cache:clear<\/code> commands affect different parts of the Laravel application:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>cache:clear<\/code> removes all items from the cache.<\/li>\n\n\n\n<li><code>config:clear<\/code> clears the configuration cache, which is often stored in <code>bootstrap\/cache\/config.php<\/code>.<\/li>\n\n\n\n<li><code>route:clear<\/code> clears the route cache file typically located in <code>bootstrap\/cache\/routes.php<\/code>.<\/li>\n\n\n\n<li><code>view:clear<\/code> deletes compiled view files in the <code>storage\/framework\/views<\/code> directory.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tinker\">Laravel Tinker<\/h2>\n\n\n\n<p><code>php artisan tinker<\/code> launches an interactive shell that allows you to interact with your Laravel application. It\u2019s especially useful for testing Eloquent queries and relationships. See <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/using-laravel-tinker\/\" target=\"_blank\" rel=\"noreferrer noopener\">Using Laravel Tinker<\/a> for more detailed information. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"scheduling\">Scheduling Artisan Commands<\/h2>\n\n\n\n<p>Artisan commands can be scheduled in the <code>app\/Console\/Kernel.php<\/code> file. This feature is useful for automating tasks like database backups or email sending.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p>Mastering PHP Artisan commands is a cornerstone of effective Laravel development. This guide aimed to illuminate the specific functionalities and directory interactions of key Artisan commands, offering a detailed perspective that enhances both understanding and practical application. As you continue to explore and utilize these commands in your Laravel projects, remember that each command is designed to streamline and optimize your development process, allowing for more focused and efficient coding practices. Embracing these tools will not only elevate your skills as a Laravel developer but also enrich your overall experience with this robust PHP framework.<\/p>\n\n\n\n<p class=\"alert alert-info\">Choose from our\u00a0<a href=\"https:\/\/www.inmotionhosting.com\/laravel-hosting\">Laravel Hosting<\/a>,\u00a0<a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">VPS Hosting<\/a>, or\u00a0<a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated Servers<\/a>\u00a0to host your Laravel applications and websites today!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"resources\">Further Resources<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/\">Laravel Education Channel<\/a><br><a href=\"https:\/\/laravel.com\/docs\/artisan\">Artisan Console Documentation<\/a><br><a href=\"https:\/\/www.inmotionhosting.com\/support\/questions\/communities\/1-community-support\/categories\/245-laravel\/topics\">Laravel Community Questions<\/a><br><a href=\"https:\/\/artisan.page\">Artisan.Page Laravel Artisan Commands Cheatsheet<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP Artisan is a robust command-line tool that is pivotal in Laravel web development. Whether you are a seasoned developer or a newcomer to Laravel, comprehending and harnessing the capabilities of PHP Artisan can significantly enhance your web development workflow. This comprehensive guide aims to educate Laravel users on effectively utilizing PHP Artisan in their<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57032,"featured_media":108506,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4486],"tags":[],"class_list":["post-108491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP Artisan - A Comprehensive Guide | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Artisan - A Comprehensive Guide | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-22T16:56:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-10T14:35:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Derrell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Derrell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\"},\"author\":{\"name\":\"Derrell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0736f70b4077032374f89709cdc255b7\"},\"headline\":\"PHP Artisan &#8211; A Comprehensive Guide\",\"datePublished\":\"2023-12-22T16:56:14+00:00\",\"dateModified\":\"2024-05-10T14:35:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\"},\"wordCount\":581,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png\",\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\",\"name\":\"PHP Artisan - A Comprehensive Guide | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png\",\"datePublished\":\"2023-12-22T16:56:14+00:00\",\"dateModified\":\"2024-05-10T14:35:10+00:00\",\"description\":\"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP Artisan &#8211; A Comprehensive Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0736f70b4077032374f89709cdc255b7\",\"name\":\"Derrell\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/derrell-willis\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/derrellw\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Artisan - A Comprehensive Guide | InMotion Hosting","description":"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/","og_locale":"en_US","og_type":"article","og_title":"PHP Artisan - A Comprehensive Guide | InMotion Hosting","og_description":"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2023-12-22T16:56:14+00:00","article_modified_time":"2024-05-10T14:35:10+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","type":"image\/png"}],"author":"Derrell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Derrell","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/"},"author":{"name":"Derrell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0736f70b4077032374f89709cdc255b7"},"headline":"PHP Artisan &#8211; A Comprehensive Guide","datePublished":"2023-12-22T16:56:14+00:00","dateModified":"2024-05-10T14:35:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/"},"wordCount":581,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/","name":"PHP Artisan - A Comprehensive Guide | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","datePublished":"2023-12-22T16:56:14+00:00","dateModified":"2024-05-10T14:35:10+00:00","description":"Discover PHP Artisan in Laravel with this comprehensive guide, detailing essential commands and practical applications for developers.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/php-artisan\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"PHP Artisan &#8211; A Comprehensive Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/0736f70b4077032374f89709cdc255b7","name":"Derrell","sameAs":["https:\/\/www.linkedin.com\/in\/derrell-willis"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/derrellw\/"}]}},"jetpack_featured_media_url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/12\/php-artisan.png","jetpack_sharing_enabled":true,"primary_category":{"id":4486,"name":"Laravel","slug":"laravel","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/laravel\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57032"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=108491"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108491\/revisions"}],"predecessor-version":[{"id":127652,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108491\/revisions\/127652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media\/108506"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=108491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=108491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=108491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}