for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Notifications;
use App\Loan;
use Illuminate\Notifications\DatabaseNotification;
class ExtendedDatabaseNotification extends DatabaseNotification
{
public function loan()
return $this->belongsTo(Loan::class)
->withTrashed();
}
/**
* The accessors to append to the model's array form.
*
* @var array
*/
protected $appends = ['url'];
public function getUrlAttribute()
return action('NotificationsController@show', $this->id);
public function humanReadableType()
switch ($this->type) {
type
App\Notifications\ExtendedDatabaseNotification
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.
case ManualReminder::class:
return 'Manuell påminnelse';
case FirstReminder::class:
return 'Automatisk påminnelse';
default:
return 'Påminnelse';
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.