Questions tagged [laravel-facade]

Facades in Laravel framework provide a "static" interface to classes that are available in the application's IoC container.

Facades provide a "static" interface to classes that are available in the application's IoC container. Laravel ships with many facades, and you have probably been using them without even knowing it! Laravel "facades" serve as "static proxies" to underlying classes in the IoC container, providing the benefit of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods.

168 questions
-2
votes
1 answer

How to mass generate PHPDoc Facade Laravel on PhpStorm

I want to mass generate PHPDoc on my Facade class without ide_helper.php. How to generate it? I've tried ide_helper.php it's work for autocomplete. But in my case I want write the PHPDoc into my Facade class Then in my Facade class will…
-2
votes
2 answers

Convert raw SQL query to Laravel DB builder query

I need help converting the following raw query into a Laravel query using the DB query builder. The query must be built using the DB (facade) query builder and not Eloquent. SELECT distinct p.client_id FROM people p JOIN (SELECT client_id,…
Riz
  • 71
  • 2
  • 10
-3
votes
1 answer

How can i get this code executed instead of having it appear on the browser? Please assist

@if(\Route::getFacadeRoot()->current()->uri() == 'dashboard' || \Route::getFacadeRoot()->current()->uri() == 'welcome' || \Route::getFacadeRoot()->current()->uri() == 'change-password' || \Route::getFacadeRoot()->current()->uri() ==…
1 2 3
11
12