Skip to content

Commit b99b56b

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents d10f118 + 2a21cce commit b99b56b

File tree

21 files changed

+511
-134
lines changed

21 files changed

+511
-134
lines changed

.env.testing.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ DB_PORT=3306
1717
DB_DATABASE=null
1818
DB_USERNAME=null
1919
DB_PASSWORD=null
20+
21+

.github/workflows/tests-sqlite.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
cp -v .env.testing.example .env
4444
cp -v .env.testing.example .env.testing
4545
46+
- name: Create database file
47+
run: touch database/database.sqlite
48+
4649
- name: Install Dependencies
4750
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
4851

@@ -57,5 +60,5 @@ jobs:
5760

5861
- name: Execute tests (Unit and Feature tests) via PHPUnit
5962
env:
60-
DB_CONNECTION: sqlite_testing
63+
DB_CONNECTION: sqlite
6164
run: php artisan test

app/Http/Controllers/Api/AssetsController.php

Lines changed: 217 additions & 119 deletions
Large diffs are not rendered by default.

app/Http/Controllers/Components/ComponentsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function destroy($componentId)
193193
$this->authorize('delete', $component);
194194

195195
// Remove the image if one exists
196-
if (Storage::disk('public')->exists('components/'.$component->image)) {
196+
if ($component->image && Storage::disk('public')->exists('components/' . $component->image)) {
197197
try {
198198
Storage::disk('public')->delete('components/'.$component->image);
199199
} catch (\Exception $e) {

app/Listeners/CheckoutableListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ private function getNotifiables($event){
307307
return $event->checkedOutTo->manager?->email ?? '';
308308
}
309309
else{
310-
return $event->checkedOutTo->email;
310+
return $event->checkedOutTo?->email ?? '';
311311
}
312312
}
313313

app/Mail/CheckinAccessoryMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedIn
3434
*/
3535
public function envelope(): Envelope
3636
{
37-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
37+
$from = new Address(config('mail.from.address'));
3838

3939
return new Envelope(
4040
from: $from,

app/Mail/CheckinAssetMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedInBy, $not
4343
*/
4444
public function envelope(): Envelope
4545
{
46-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
46+
$from = new Address(config('mail.from.address'));
4747

4848
return new Envelope(
4949
from: $from,

app/Mail/CheckinLicenseMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
3434
*/
3535
public function envelope(): Envelope
3636
{
37-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
37+
$from = new Address(config('mail.from.address'));
3838

3939
return new Envelope(
4040
from: $from,

app/Mail/CheckoutAccessoryMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedOu
3737
*/
3838
public function envelope(): Envelope
3939
{
40-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
40+
$from = new Address(config('mail.from.address'));
4141

4242
return new Envelope(
4343
from: $from,

app/Mail/CheckoutAssetMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedOutBy, $no
5252
*/
5353
public function envelope(): Envelope
5454
{
55-
$from = new Address(env('MAIL_FROM_ADDR', '[email protected]'));
55+
$from = new Address(config('mail.from.address'));
5656

5757
return new Envelope(
5858
from: $from,

0 commit comments

Comments
 (0)