Beispiel #1
0
 protected static function boot()
 {
     parent::boot();
     Company::creating(function ($company) {
         $company->api_token = str_random(10);
     });
 }