Auth()->user()->id;
$userId = Auth::id();
Also in PHP:
- composer create-project laravel/laravel 8
- codeigniter redirect
- exception php
- Artisan::call('db:seed', array('--class' => 'YourSeeder Class'));
- Database name seems incorrect You're using the default database name laravel. This database does not exist. Edit the .env file and use the correct database name in the DB_DATABASE key.
- add() in php
- convert php string to uppercase
- Tests\Feature\BlogTest > user can delete post 162 Illuminate\Encryption\MissingAppKeyException No application encryption key has been specified.
- Pacific Daylight Time Zone php
- <?php include localhost:8080/index.php?>
- array empty check in php
- codeigniter db insert return id
- codeigniter.com cart
- check if character in string php
- array reverse sequence pp
- base64 img com php
- extract the domain name from the current url in php
- filter only unique string in php
- excerpt custom post type
- create symfony project
- aws sdk php
- create project larave
- :user="{{auth()->user()}}
- eloquent seeder