Support the ongoing development of Laravel.io →

988 Threads

Route Model Binding with Repositories

Hi, I have an application where there are multiple subdomains (portals) running from a single instan...

0 Likes
4 Replies
Solved

Eloquent Many to Many Queries returning empty or incorrect. Why? Laravel 5.3

So, this is weird. I have been implementing ontoMany relationships between users and various data se...

0 Likes
1 Replies
Solved

What kind of database for big data?

Hi, i used to use laravel with mysql on hostings. Never use AWS or managed a Server by myself. For a...

0 Likes
3 Replies
Solved

Get item by item_id from LengthAwarePaginator?

How can i get item by it is id from LengthAwarePaginator? I have tried something like this: {{$categ...

0 Likes
3 Replies
Solved

Laravel 5.3 why SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails?

I have product, and it has many comments, why i cant delete product, with all of this comment? My Aj...

0 Likes
1 Replies
Solved

Ho to Paginate search results?

I have own search filter, like that: public function search(Request $request, $counter = 5){ $sear...

0 Likes
2 Replies
Solved

Can't change table name for eloquent

I haven't used Laravel in a while, so maybe I'm forgetting something. But these are my files: Route:...

0 Likes
5 Replies
Solved

Question on model create

Alright, I will do my best to describe my issue here. I have a route Route::get('/did/{search?}','DI...

0 Likes
2 Replies
Solved

View Composer to pass variable to all views

Hi, I have created a view composer to pass through the variable 'categories' to all views but I get...

0 Likes
1 Replies
Solved
posted 9 years ago

L5 Eloquent -> Models not found!?

Hey, i'm trying to create my relation with the database and i have this error... FatalErrorException...

0 Likes
4 Replies
Solved

Why my Ajax id's array Request deletes only 3 records?

My Ajax request var users_ids = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11']; $.aja...

0 Likes
1 Replies
Solved

Wait until information is saved into DB

Hello, I'm currently trying the following: I'm having a form, where a user can add additional inform...

0 Likes
2 Replies
Solved

Model not found (Class 'App\Http\Controllers\App\Work' not found)

Somehow my model cannot be found, I also did try with use; This is in a normal controller public fun...

0 Likes
1 Replies
Solved

Add additional information for user

I'm using Laravel for a little app. In this app I added the auth things of Laravel (verison 5.3), so...

0 Likes
4 Replies
Solved

OneToMany works for the first user not the second??

Hi I am having invoices and customers and users how can generete both Customer Model: public functio...

0 Likes
1 Replies
Solved

slug, str_slug

I added a collumn in the table users I call slug, no errors or anything, it just doesn't add. Should...

0 Likes
2 Replies
Solved

How to use multiple database connections in laravel project?

I want to use mysql and mongoDB in my laravel project, I know I can define multiple connections arra...

0 Likes
1 Replies
Solved

Default Value On Migrate

Hello How can I define a default value on table schema(migrate)? Thank You

0 Likes
1 Replies
Solved

Get DB field from whereHas Table

Hi there, I have the folloing Tables: Partner id int name varchar booking id int id_partner int bo...

0 Likes
1 Replies
Solved

Users and Roles

Hi! I'm new in Laravel and I have a little problem with User and Roles. In a database I have users a...

0 Likes
11 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.