Floyk com
2 months ago
Jason Miller
Edited 6 months ago

#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')
                  
Jason Miller
Edited 6 months ago

#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',
]);
?>
                  
Igor Simic
Edited 7 months ago

problem:
#laravel migration #error "Changing columns for table user requires Doctrine DBAL"

solution:

                    composer require doctrine/dbal
                  
Igor Simic
8 months ago
Stefan Baden
8 months ago
Vizenzo Caponera
8 months ago

#jetstream profile photo not showing in #laravel

  • open config/jetstream.php
  • uncomment Features::profilePhotos()
  • run php artisan storage:link

done!😎

Stefan Baden
8 months ago

#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