Floyk com
1 month ago

#laravel 9 how to add prefix to #jetstream routes? 
open config/jetsream.php and add:

                    'prefix' => 'app', // app will be prefix for all jetstream routes
                  

Igor Simic
3 months ago
Vizenzo Caponera
Edited 3 months ago
Igor Simic
3 months ago
Floyk com
10 months ago
Jason Miller
Edited 1 year 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 1 year 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 1 year ago

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

solution:

                    composer require doctrine/dbal