skip to Main Content

encountered an error and could not solve it : count(): Argument #1 ($value) must be of type Countable|array, string given – PHP Versions

I encountered the error when I try to sign in my application mede by laravel 8.41.0 and PHP 8.0.3. error TypeError count(): Argument #1 ($value) must be of type Countable|array, string given location vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php:235 file <?php namespace IlluminateDatabaseEloquentConcerns; use IlluminateSupportStr;…

VIEW QUESTION

How to prevent laravel changing folder owner – Apache

Now and then we face a destructive issue within a Laravel project: Storage log file production.ERROR: Unable to create lockable file: /var/www/html/storage/framework/cache/data/... Please ensure you have permission to creto create files in this location. #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php(43) When the issue happens…

VIEW QUESTION

currentAccessToken()->delete throw exception on test but works fine in real – PHP Versions

Sanctum Version: ^2.11.2 Laravel Version: 8.54 PHP Version: 7.3|^8.0 Database Driver & Version: Description: deleting current user token works fine but in test it throw exception Steps To Reproduce: routes/api.php Route::prefix('auth')->middleware('auth:sanctum')->group(function () { Route::delete('/sign_out', [AuthController::class, 'signOut']); /// other routes });…

VIEW QUESTION
Back To Top
Search