exposé tinker laravel
// see the count of all users
App\User::count();
// find a specific user and see their attributes
App\User::where('username', 'kamelia')->first();
// find the relationships of a user
$user = App\User::with('posts')->first();
$user->posts;
Also in PHP:
- create new directory php
- add hour minute in datetime in php
- array reverse order php
- array_key_exists vs isset
- Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:cer
- convert date to timestamp php
- clear the cache
- adminlte con laravel 8
- check if esist key in array php
- create project with laravel 7
- composer clear cache
- apply soft delete by custom laravel
- cache eloquent laravel 8
- array unique php by value
- creating a laravel project with composer
- !array_key_exists($id, $this->items)
- auto refresh page php
- codeigniter
- crear un seeder laravel
- check if string contains certain word
- can we seed test database in laravel with seeder?
- $time=date("H:i");
- $date php
- cache clear in laravel command