{"id":2479,"date":"2025-07-22T15:06:40","date_gmt":"2025-07-22T15:06:40","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.in\/?p=2479"},"modified":"2025-07-22T15:06:40","modified_gmt":"2025-07-22T15:06:40","slug":"what-is-php-artisan-tinker","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2025\/07\/22\/what-is-php-artisan-tinker\/","title":{"rendered":"What is php artisan tinker?"},"content":{"rendered":"\n<p><strong>English:<\/strong> <code>php artisan tinker<\/code> is a Laravel command that opens a REPL shell allowing developers to interact with the Laravel application using PHP code in real time. It is useful for testing database queries, running Eloquent models, calling functions, and debugging without writing code in controllers or routes.<\/p>\n\n\n\n<p><strong>Hindi:<\/strong> <code>php artisan tinker<\/code> \u090f\u0915 \u0915\u092e\u093e\u0902\u0921 \u0939\u0948 \u091c\u093f\u0938\u0938\u0947 Laravel app \u0915\u0947 \u0905\u0902\u0926\u0930 \u0915\u093e \u0915\u094b\u0921 \u0906\u092a \u0938\u0940\u0927\u0947 \u091f\u0930\u094d\u092e\u093f\u0928\u0932 \u092a\u0930 \u0930\u0928 \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902\u0964 \u0907\u0938\u092e\u0947\u0902 \u0906\u092a models \u0938\u0947 \u0921\u0947\u091f\u093e \u0928\u093f\u0915\u093e\u0932 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, functions \u0915\u094b call \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 debugging \u0915\u0930 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902 \u2014 \u092c\u093f\u0928\u093e \u0915\u093f\u0938\u0940 \u092b\u093e\u0907\u0932 \u092e\u0947\u0902 \u0915\u094b\u0921 \u0932\u093f\u0916\u0947\u0964<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>How to Use Tinker<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>php artisan tinker<\/code>\n\n\u2705 Real-World Example Commands\n\ud83d\udd39 Create a User:\nphp\nCopy\nEdit\nUser::create([\n    'name' => 'Admin',\n    'email' => 'admin@example.com',\n    'password' => bcrypt('secret')\n]);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>English: php artisan tinker is a Laravel command that opens a REPL shell allowing developers&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[36],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2479"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=2479"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2479\/revisions"}],"predecessor-version":[{"id":2480,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/2479\/revisions\/2480"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=2479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=2479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=2479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}