English: php artisan tinker 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.

Hindi: php artisan tinker एक कमांड है जिससे Laravel app के अंदर का कोड आप सीधे टर्मिनल पर रन कर सकते हैं। इसमें आप models से डेटा निकाल सकते हैं, functions को call कर सकते हैं और debugging कर सकते हैं — बिना किसी फाइल में कोड लिखे।

How to Use Tinker

php artisan tinker

✅ Real-World Example Commands
🔹 Create a User:
php
Copy
Edit
User::create([
    'name' => 'Admin',
    'email' => 'admin@example.com',
    'password' => bcrypt('secret')
]);