laravel-facade Questions
3
Solved
I get a bit confused over all the nice things laravel has to offer in terms of the IOC container and facades. Since I'm not an experienced programmer it gets overwhelming to learn.
I was wondering,...
East asked 10/8, 2014 at 13:28
5
Solved
I have looked at several answers suggested to a similar issue but nothing worked in my case.
FYI, this is my first project in Laravel 7, working fine on my Mac.
I have deployed the project on my se...
Levon asked 7/5, 2020 at 6:47
4
How can I fix this alert in PhpStorm?
And also how to get autocompletion for Route and other Facades?
Shadoof asked 24/5, 2016 at 16:29
1
When using realtime facades in Laravel, VSCode doesn't seems to provide intellisense or autocompletion. Even when using popular plugins like PHP Intelliphense I can't get it to work. However, when ...
Civies asked 10/12, 2019 at 3:39
4
Solved
I am finding it a bit difficult to understand Facades. Particularly how to find the underlying class name/location from a facade name. I have gone through the documentation but still not clear. For...
Fenton asked 12/9, 2017 at 9:49
2
Solved
I'm upgrading from Laravel 5 to Laravel 7.
I'm using a lot of Form::model on my project.
Class 'Form' not found
I tried to install
"laravelcollective/html": "~5.0"
I kept g...
Midshipman asked 29/3, 2020 at 23:14
1
I am aware of the filesystems.php to create disks and I'm currently using it, having ~~ 20 disks configured.
I have a new problem with these, I'm currently trying to prefix to every disk, a string...
Altaf asked 21/3, 2018 at 22:44
3
Solved
I'm confused by the Facades offered by Laravel.
The Laravel documentation states:
Facades provide a "static" interface to classes that are available in the application's service container. Lar...
Commonage asked 14/2, 2017 at 10:41
1
Solved
I wonder if there is a performance difference between using Facades and helper methods in laravel 5.1.
I startet to remove for example use View; or View::make() wherever possible, thinking that vi...
Allometry asked 9/7, 2015 at 17:19
4
What, I had been doing previously was to inject only MY MODELS using the constructor and use Facades for the Laravel's provided classes i.e. Session, Auth, Validator etc, for example. Will it be a ...
Curcuma asked 22/11, 2014 at 18:10
2
Solved
I have a Unit test in Laravel for testing an API call that looks like this, however I am getting the following runtime error when running it:
RuntimeException: A facade root has not been set.
I'...
Upheld asked 30/12, 2016 at 12:14
2
Solved
I need to handle different types of DB depending on the client.
I created a Facade called MyDBFacade where I can call my own functions.
For example:
MyDBFacade::createDBUser("MyUser"); // will c...
Stubby asked 15/11, 2016 at 16:25
2
Solved
On the edit profile page for a user, I want to show the existing values of the current logged-in user details like name, email, gender etc. My questions are as follows
Is it recommendable to user ...
Tavish asked 16/10, 2016 at 0:9
1
Solved
I want to override the Laravels' Mail's classes facade method send (just intercept it forcing some checks and then if it passes triggering parent::send())
What is the best way to do this?
Ardenia asked 22/9, 2016 at 19:24
1
I am attempting to create my own custom facade for a Search feature, but I'm having a little difficulty:
type: Symfony\Component\Debug\Exception\FatalErrorException
message: Call to undefined meth...
Bounteous asked 26/7, 2015 at 11:1
1
Solved
I'm just starting with laravel and want to understand this...
Lets say we have a class in our application:
namespace App\Tests;
class MyTest{
public function sayHello($name){
echo "Hello, $nam...
Unbowed asked 17/3, 2016 at 13:6
6
Solved
I have read a number of sources that hint that laravel facade's ultimately exist for convenience and that these classes should instead be injected to allow loose coupling. Even Taylor Otwell has a ...
Honor asked 26/1, 2016 at 10:10
1
I have read that there should be not too much dependencies to one class. In one book, it states that 4 dependencies might be a sign that class might be doing too much.
Lets say I have written a cl...
Platitudinous asked 27/3, 2015 at 6:48
1
Solved
Just want to start by saying I have no clue what I'm doing...
I have a user_info table that looks like this
Schema::create('user_info', function(Blueprint $table){
$table->increments('id');
...
Cockchafer asked 26/9, 2015 at 6:6
1
Solved
I am using Laravel Log Facade in my app. And I have several services like Mandrill, Twilio, Stripe, etc., that need to be logged in separate file. But when I use Log::useFiles() to set separate fil...
Juliennejuliet asked 27/8, 2015 at 18:12
1
Solved
Based on Input Facade API and Request Facade API the Input::get() method seems to be the only difference. Am I missing something here?
I know Validation can be applied to Requests, but I am not su...
Flyover asked 30/4, 2015 at 6:25
1
© 2022 - 2024 — McMap. All rights reserved.