Fixes for passing variables to artisan commands
This commit is contained in:
parent
d427812cc3
commit
d6f1caef73
3 changed files with 5 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ class SchedulerCheck implements ShouldQueue
|
|||
{
|
||||
|
||||
try {
|
||||
Artisan::call('migrate', ['--force' => 'true']);
|
||||
Artisan::call('migrate', ['--force' => true]);
|
||||
} catch (\Exception $e) {
|
||||
nlog("I wasn't able to migrate the data.");
|
||||
nlog($e->getMessage());
|
||||
|
|
|
|||
|
|
@ -57,9 +57,9 @@ class UpdateUserLastLogin implements ShouldQueue
|
|||
if($user->ip != $ip)
|
||||
{
|
||||
$nmo = new NinjaMailerObject;
|
||||
$nmo->mailable = new UserLoggedIn($user, $user->account->companies()->first(), $ip);
|
||||
$nmo->company = $user->account->companies()->first();
|
||||
$nmo->settings = $user->account->companies()->first()->settings;
|
||||
$nmo->mailable = new UserLoggedIn($user, $user->account->companies->first(), $ip);
|
||||
$nmo->company = $user->account->companies->first();
|
||||
$nmo->settings = $user->account->companies->first()->settings;
|
||||
$nmo->to_user = $user;
|
||||
NinjaMailerJob::dispatch($nmo);
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class Company extends BaseModel
|
|||
|
||||
public function all_documents()
|
||||
{
|
||||
return $this->HasMany(Document::class);
|
||||
return $this->hasMany(Document::class);
|
||||
}
|
||||
|
||||
public function getEntityType()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue