scripthost/app/Models/Script.php
Javier Feliz 74f5dc5db1
Some checks failed
tests / ci (push) Has been cancelled
linter / quality (push) Has been cancelled
Build & Push Docker Image to Registry / build (release) Failing after 3m7s
Initial test
2025-07-22 19:45:33 -04:00

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]);
}
}