Folder structure:
Livewire
- Things
- Addthing.php
Blade file
#livewire('things.addthing')
is unable to locate it: Unable to find component: [things.addthing]
Without subdirectory, this works fine as:
Livewire
- Addthing.php
.
#livewire('addthing')
How do I get Livewire components to work in a subdirectory?
It should work like this, did you also update your namespace to match the path?
For example:
namespace App\Http\Livewire\Things;
I referenced it as #livewire('things.addthings') in the blade and it worked maybe check your typo.
Related
I've installed a laravel package black-bits/laravel-cognito-auth .
When i run php artisan route:list on command line, i've the following error:
Target class [App\Http\Controllers\Auth\ResetPasswordController] does not exist.
I'm not using ResetPasswordController in that specified path.
My ResetPassword controller's path is here: \app\Http\Controllers\Api\V1\Account\ResetPasswordController.php.
I'm mainly using this project for apis.
when i search for this path in vendor folder, i can see this.
.
Since, these routes are in vendor folder, what can i do to fix this issue?
H Guys,
I have custom folder in App folder call libraries in laravel 5.2 version.In that libraries folder have a error.php file. I need load my custom config file to the error.php. I have try Config::get('errorreporter.active') & config('errorreporter.active') But these to not work. any one can help me please for resolve this issue
Move the file to the config folder and use the correct naming:
Config::get('[filename].[array_key]');
So if config/error.php has the following content:
<?php
return [
'active' => true
];
then the correct way of calling that value would be
Config::get('error.active')
or
config('error.active')
When trying to reference a function in my controller, I get the following error. It's missing the "/angular/" in the path. How can I update the root path to include the angular directory?
Remove the / at the beginning of wherever you are trying to call your function, placing ./ might also work.
I was able to create the directory, but when I tried to create the namespace App\Http\Controllers\Orders; PHP Storm was showing errors. I could namespace with any other directory name that I tried within \Controllers except for \Orders.
Any ideas why this is?
when i use a Doctrine Model Doctrine cant find the BaseModel in the models/generated folder.
what should i put in the Doctrine bootstrap file to tell it they are in the models/generated folder?
thanks!
The following line in my bootstrap file resolved this issue for me:
Doctrine_Core::loadModels('path/to/models/generated');