Floyk com
vor 4 Monaten
Jason Miller
Bearbeitet vor 8 Monaten

#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
Bearbeitet vor 8 Monaten

#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
Bearbeitet vor 9 Monaten

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

solution:

                    composer require doctrine/dbal
                  
Igor Simic
vor 10 Monaten
Stefan Baden
vor 10 Monaten
Vizenzo Caponera
vor 10 Monaten

#jetstream profile photo not showing in #laravel

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

done!😎

Stefan Baden
vor 10 Monaten

#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