Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Language | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| getUrlAttribute | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| namespace App; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Database\Eloquent\SoftDeletes; | |
| /** | |
| * @method static firstOrCreate(array $array) | |
| */ | |
| class Language extends Model | |
| { | |
| // so data is not deleted permintaly | |
| use SoftDeletes; | |
| // No Timestamp | |
| public $timestamps = false; | |
| public function getUrlAttribute(): string | |
| { | |
| return action('Admin\LanguageController@details', [$this->id, $this->name]); | |
| } | |
| } |