test

3 years ago

alexis-riot

test

Code

$user = User;

Output

[!] Aliasing 'User' to 'App\Models\User' for this Tinker session.
=> App\Models\User {#2235
     id: 2,
     firstname: "Edgardo",
     surname: "Abshire",
     is_holding: 0,
     email: "[email protected]",
     email_verified_at: "2021-05-26 14:43:42",
     #password: "$2y$10$kLc7BnIIEi/UDY7jLfuMjel7l2E4mYEVVTCKdeda1XN3tyzPBR5w2",
     #two_factor_secret: null,
     #two_factor_recovery_codes: null,
     #remember_token: "Uz1f8Jy8kG",
     current_team_id: null,
     profile_photo_path: "profile-photos/sdfZHyZkVurGNmLjrGci8uzMpxrv8L5qgVn1F0Vh.png",
     comment: null,
     created_at: "2021-05-26 14:43:42",
     updated_at: "2021-05-26 14:43:49",
     deleted_at: null,
     +profile_photo_url: "https://vtr-dev-2.s3.eu-west-3.amazonaws.com/profile-photos/sdfZHyZkVurGNmLjrGci8uzMpxrv8L5qgVn1F0Vh.png",
     +full_name: "Edgardo Abshire",
     +permissions: Illuminate\Support\Collection {#2378
       all: [
         "test-permission-1" => false,
         "test-permission-2" => false,
         "test-permission-3" => false,
       ],
     },
     +roles: Illuminate\Support\Collection {#2342
       all: [],
     },
     +active_tenant: null,
     +can_switch_tenant: false,
     +is_holding_active: false,
   }
New course: Desktop apps with Electron