Changeset View
Changeset View
Standalone View
Standalone View
src/app/CompanionApp.php
- This file was added.
<?php | |||||
namespace App; | |||||
use Illuminate\Database\Eloquent\Model; | |||||
/** | |||||
* The eloquent definition of a CompanionApp. | |||||
* | |||||
* A CompanionApp is an kolab companion app that the user registered | |||||
*/ | |||||
class CompanionApp extends Model | |||||
{ | |||||
protected $fillable = [ | |||||
'name', | |||||
'user_id', | |||||
'device_id', | |||||
'notification_token', | |||||
'mfa_enabled', | |||||
]; | |||||
} | |||||
machniak: Documentation for params missing. | |||||
Done Inline ActionsShort array syntax, please. machniak: Short array syntax, please. | |||||
Done Inline ActionsIt would be better to not use curl, but guzzlehttp/guzzle client we already have in use. machniak: It would be better to not use curl, but guzzlehttp/guzzle client we already have in use. | |||||
Done Inline ActionsJust a not that in most cases we're using return type declarations. machniak: Just a not that in most cases we're using return type declarations. | |||||
Done Inline ActionsUse pluck() method https://laravel.com/docs/8.x/queries#retrieving-a-list-of-column-values machniak: Use pluck() method https://laravel.com/docs/8.x/queries#retrieving-a-list-of-column-values | |||||
Done Inline ActionsI'd add @throws info. machniak: I'd add @throws info. | |||||
Done Inline ActionsAdd @throws machniak: Add @throws |
Documentation for params missing.