MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / laravelNavigation

Method laravelNavigation

examples/laravel/app/Demo.php:197–215  ·  view source on GitHub ↗

* "Go to Definition" and "Find All References" for Laravel identifiers. * * Try: * 1. Ctrl+Click "welcome" to jump to resources/views/welcome.blade.php. * 2. Ctrl+Click "admin.users.index" to jump to the view. * 3. Ctrl+Click "home" to jump to the ->name('home') declaration in routes/web.php. * 4. Ctrl+Click "auth.failed" to jump to lang/en/auth.php. */

()

Source from the content-addressed store, hash-verified

195 * 4. Ctrl+Click "auth.failed" to jump to lang/en/auth.php.
196 */
197 public function laravelNavigation(): void
198 {
199 // Blade Views — passing typed data for in-template completion
200 $posts = BlogPost::where('published', true)->get();
201 view('welcome', compact('posts'));
202 View::make('admin.users.index', ['users' => BlogAuthor::all()]);
203 View::exists('emails.blog_published');
204
205 // Named Routes
206 route('home');
207 route('admin.users.index');
208
209 // Translation Keys
210 __('messages.welcome');
211 trans('auth.failed');
212 trans_choice('messages.notifications', 5);
213 Lang::get('pagination.next');
214 Lang::has('validation.required');
215 }
216
217
218 // ── PHPDoc Virtual Member References & Rename ───────────────────────────

Callers

nothing calls this directly

Calls 4

whereMethod · 0.80
getMethod · 0.45
makeMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected