laravel Questions
4
I have a users table and a permissions table. It's a many-to-many relationship so I also have a users_permissions table with a user_id & module_permission_id column.
The user model has the fol...
Visitation asked 30/5, 2017 at 10:2
4
I am using inertiajs/inertia-laravel 0.6.3 with Laravel 8.40.
I get this response every time I run my test, and I have checked everything. Sometimes, I use Assert instead of AssertableInertia.
If s...
1
I am working with a database based session driver at the moment, to allow us to store some persistent data across our application,
we create the session like this:
Auth::loginUsingId($user->i...
2
Solved
7
Need Help 🛬
Framework - Laravel
Hosting - Hostgator
Problem Statement :- I need to run the 'composer update'. All dependencies required minimun php -v of 5.5.9. I have manualy Upgrade the php...
4
Solved
I'm trying to add a patch route to routes/api.php but I get "route not found" even after trying route:cache. it's registered in route:list and other routes in that scope are working.
this...
7
I'm using Laravel 5.4 and Socialite 3.0
With every new socialite provider I add I get the error:
Driver [provider] not supported.
for example when adding socialiteproviders/twitch 3.0 I will ...
Exultant asked 7/8, 2017 at 20:14
4
Solved
I have a simple set-up of Albums and Images, each album has many images. I can get all the data fine but I want to limit the returned number of images to 3. I have tried passing a closure like so:
...
2
Solved
I have a few blade template files which I want to include in my view dynamically based on the permissions of current user stored in session. Below is the code I've written:
@foreach (Config::get(...
Toplevel asked 15/1, 2015 at 12:5
5
Solved
I have a fresh installation of Laravel Sanctum API. When I try to log a user in after registration or when submitting the registration form twice, I get an exception with the message "The rout...
Vallee asked 3/1, 2023 at 1:59
3
Solved
I have two model resources and I want to be merged into a flat array without having to explicitly define all the attributes of the other resource.
Model 1:
id
name
created_at
Model 2:
id
alter...
1
I am working to migrate a Laravel web application to DigitalOcean's new App platform. We have been running this application on several machines over the past few months with no npm issues. However,...
Bibber asked 2/1, 2021 at 2:3
4
Solved
Laravel 5 provides translations using the @lang helper
<!-- file: template.blade.php -->
@lang('some text')
Laravel 5 also has the possibility to pluralize strings depending on a variable.
/...
Riegel asked 3/9, 2018 at 10:18
7
My whole application, made in Laravel 5.2, is working perfectly fine but when i tried to get list of routes through following command:
php artisan route:list
It shows me following error:
[...
Reduce asked 22/3, 2016 at 8:28
5
Solved
I'm new to Laravel and looking for a good way to seed a pivot table using factories. I don't want to use plain seeders. I'll show you the case:
I have three tables (users, skills, and user_skill).
...
Souvenir asked 2/10, 2016 at 16:33
4
Solved
At the moment, I'm engaged in a project that employs Laravel's Filemant, and I've noticed significant slowness when navigating between pages or submitting forms. The delay can range from 10 to 18 s...
Selima asked 24/9, 2023 at 13:6
5
I'm implementing an API in Laravel using JSON:API specification.
In it I have a resource, let's call it Ponds, with many-to-many relationships with another resource, let's call it Ducks.
Accordi...
12
I just restart my laravel 8.0 project and I got this below error, please what could be wrong, this happens anytime I run "PHP artisan serve"
TypeError
fclose(): Argument #1 ($stream) m...
Reitareiter asked 8/2, 2021 at 21:11
1
When deleting a Laravel Nova resource, the message "Are you sure you want to delete the selected resources" is displayed in a confirmation modal. How can I override this for a specific resource?
Freightage asked 9/12, 2018 at 19:31
8
Solved
I am using Laravel's Mutator functionality and I have the following Mutator:
public function setFirstNameAttribute($value)
{
$this->attributes['first_name'] = strtolower($value);
}
However I...
3
To display an error while using Laravel Artisan the official Laravel 5.8 documentation says:
$this->error('Something went wrong!');
But what's the context of $this?
Following is the contents ...
3
I'm currently working in laravel and react js. I've made API end points in laravel for login registration with laravel passport. Now, I've made following route to get user details when api_token is...
4
I have a laravel project, which is working fine on the local machine, where I have it set up on homestead, but when I have uploaded project to the production server on namecheap, none of the links ...
4
I have created a Laravel project and I added few table with Migrate.
It was working fine. The tables already had data. Now I require another table and I tried to add it with this command:
php arti...
7
I'm doing a union on two queries, and I want to add a where clause to the result, but the where clause is added only to the first query. how can I fix that?
$notifications = DB::table('notificati...
© 2022 - 2025 — McMap. All rights reserved.