A standalone Laravel playground that demonstrates PHPantom's Laravel-specific features against a real Laravel installation.
- Eloquent models. Virtual properties from
$fillable,$casts,$attributes, relationships, scopes, accessors, custom collections, and query builder forwarding. - Config and env navigation. Go-to-definition and find-references for
config('app.name')keys (resolves toconfig/app.php) andenv('APP_KEY')vars (resolves to.env). - View navigation. Go-to-definition for
view('welcome')andView::make('admin.users.index')(resolves to Blade templates inresources/views/). - Route navigation. Go-to-definition for
route('home')(resolves to->name('home')in route files). - Translation navigation. Go-to-definition for
__('messages.welcome'),trans('auth.failed'), andtrans_choice(...)(resolves tolang/PHP files). - Blade template intelligence. Variable completion and hover in
{{ }}expressions (shown ase()calls), go-to-definition on@include/@extendsview references,@forelse/@emptydirectives, implicit$loopvariable in@foreach/@forelse, implicit$messagein@error, implicit$valuein@session,@verbatimblock handling, and standalone@vardocblocks for type narrowing.
- Run
composer installin this directory to install Laravel. - Open this directory as a project (or workspace folder) in your editor.
- Open
app/Demo.phpand navigate to anydemo()method. - Trigger completion, hover, or go-to-definition inside the method body.