Make fuel_used an optional field in PIREP file (#1197)
This commit is contained in:
parent
e7bbd6cccb
commit
ede5b74383
@ -19,7 +19,7 @@ class FileRequest extends FormRequest
|
||||
return [
|
||||
'distance' => 'required|numeric',
|
||||
'flight_time' => 'required|integer',
|
||||
'fuel_used' => 'required|numeric',
|
||||
'fuel_used' => 'sometimes|numeric',
|
||||
'block_time' => 'sometimes|integer',
|
||||
'airline_id' => 'sometimes|exists:airlines,id',
|
||||
'aircraft_id' => 'sometimes|exists:aircraft,id',
|
||||
|
@ -14,7 +14,7 @@ class MessageLoggedListener
|
||||
{
|
||||
public function handle(MessageLogged $event)
|
||||
{
|
||||
if (app()->runningInConsole()) {
|
||||
if (app()->runningInConsole() && app()->environment() !== 'testing') {
|
||||
$output = new ConsoleOutput();
|
||||
$output->writeln("<$event->level>$event->message</$event->level>");
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
<server name="BCRYPT_ROUNDS" value="4"/>
|
||||
<server name="CACHE_DRIVER" value="array"/>
|
||||
<server name="DB_CONNECTION" value="memory"/>
|
||||
<server name="DB_PREFIX" value="vmstest_"/>
|
||||
<server name="DB_PREFIX" value=""/>
|
||||
<server name="MAIL_MAILER" value="array"/>
|
||||
<server name="QUEUE_DRIVER" value="sync"/>
|
||||
<server name="SESSION_DRIVER" value="array"/>
|
||||
|
Loading…
Reference in New Issue
Block a user