spatie / laravel-web-tinker

Tinker in your browser
https://spatie.be/open-source
MIT License
1.05k stars 68 forks source link

Empty user #60

Closed boskiv closed 4 years ago

boskiv commented 4 years ago

I have install web-ticker

➜ composer require spatie/laravel-web-tinker --dev
Using version ^1.7 for spatie/laravel-web-tinker
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing spatie/laravel-web-tinker (1.7.3): Downloading (100%)         
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: intervention/image
Discovered Package: laravel-shift/blueprint
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: spatie/laravel-medialibrary
Discovered Package: spatie/laravel-permission
Discovered Package: spatie/laravel-web-tinker
Package manifest generated successfully.
51 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

i_skiridomov in crm on  master [!?] via ⬢ v12.18.0 via 🐘 v7.4.8 on 🐳 v19.03.12 (docker) at ☸️  qa  took 22s 
➜ php artisan web-tinker:install
Publishing Web Tinker Assets...
Web tinker installed successfully.

Tried to get my user: Screen Shot 2020-07-11 at 3 19 57 PM

tincker from Psy Shell works:

Psy Shell v0.10.4 (PHP 7.4.8 — cli) by Justin Hileman
>>> User::first();
[!] Aliasing 'User' to 'App\User' for this Tinker session.
=> App\User {#3921
     id: 1,
     name: "admin",
     email: "admin@ione.dev",
     email_verified_at: null,
     created_at: "2020-07-11 05:58:24",
     updated_at: "2020-07-11 05:58:24",
   }
>>> 
>>> App::environment()
=> "local"
>>> 
boskiv commented 4 years ago

Duplicate: https://github.com/spatie/laravel-web-tinker/issues/56