generated from thegrind/laravel-dockerized
21 lines
351 B
PHP
21 lines
351 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Script extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
public function viewUrl()
|
|
{
|
|
return route('script-view', ['path' => $this->path]);
|
|
}
|
|
|
|
public function contentUrl()
|
|
{
|
|
return route('script-content', ['path' => $this->path]);
|
|
}
|
|
}
|