@if(Auth::user()->id(1))
use Auth;
$user_id = Auth::user()->id;
$userId = Auth::id();
Also in PHP:
- collection empty laravel
- cache laravel docs
- create project laravel 7 ?
- blade php code
- factoring and seeding in laravel
- day in php time
- catch try php
- base64_decode laravel
- check if in array key php
- consolelog is it a thing in php
- SET CURRENT DATE TIME IN PHP'
- Y-m-d H:i:s O format
- display error message in php
- associative array php
- composer install in laravel project
- count the no of characters in a string in phph
- TEXT UPPER PHP
- base64 to string pp
- error in migration laravel
- create new laravel project composer
- drupal/core 8.9.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. composer install
- enable all errors php
- PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Eav\Model\Attribute\Data\Text::validateLength() must be of the type string, null given
- create laravel 5.8 project using composer