#laravel how to check does request contain specific POST parameter. Actually there are couple of methods we can use in this case.
Here they are in another #laraveltip
$request->has('eventName')
// or
$request->exists('eventName')
// or
$request->filled('eventName')
Comments
#laraveltip how to validate date in submit form❓️ Here is the simple example of validating different types of dates passed from submit form:
<?php
// eventDate = 16/02/2000
$request->validate([
'eventDate' => 'required|date_format:d/m/Y',
]);
?>
Comments
problem:
#laravel migration #error "Changing columns for table user requires Doctrine DBAL"
solution:
composer require doctrine/dbal
Comments
check out my tutorial about localizing / adding language prefix to #Laravel #JetStream routes:
Comments
#jetstream profile photo not showing in #laravel
- open config/jetstream.php
- uncomment
Features::profilePhotos()
- run
php artisan storage:link
done!😎
Comments
#laravel #JetStream error when trying to register to newly installed app. Error looks like this:
Jetstream / Teams: Column not found: 1054 Unknown column 'current_team_id' in 'field list
solution is to run migrate refresh
php artisan migrate:refresh
Comments