Support the ongoing development of Laravel.io →

4,599 Threads

User edits on blade update database

Hey guys, I am fairly new to the Laravel framework. Currently in my blade I have a few fields that u...

0 Likes
2 Replies

Pagination with ajax not working

I´m using Laravel5.3. The problem is that the current Pagenum is not set. I mean I get the correct d...

0 Likes
1 Replies
Solved

file upload laravel problem

I've been 5 hours on this :( Cant find what is the error : ErrorException in ContestController.php...

0 Likes
2 Replies

withPivot() Returns Incorrect Value

See Source Code Question Why does the following code return the pivot value for the original attribu...

0 Likes
0 Replies

Laravel 5.3 Eloquent : belongsToMany x2 issue

Hello there, Following up one Laracast about Roles & Permissions, I'm trying to figure out a way...

0 Likes
1 Replies
posted 8 years ago

could not make create_user_table with this command. the path seems incorrect

Anuj@Anuj-PC MINGW64 /c/wamp/www/demoProject $ php artisan make:model User -m ←[32mModel created suc...

0 Likes
0 Replies

Do factories use transactions?

I also posted my question on laracast, but perhaps anyone here has the answer. Topic on laracast I'm...

0 Likes
0 Replies

Pass ID to create action of RESTful controller

Hi people, i have a problem. I have a RESTful controller called SCHEDE. I want to insert new row in...

0 Likes
2 Replies

Query items that have all categories

Hi, I have a Shops model associated to services, using a pivot table: public function services() {...

0 Likes
1 Replies
Solved

join pivot data in query (Many To Many Polymorphic Relations)

i have Many To Many Polymorphic Relations. post morphedByMany(postA) post morphedByMany(postB) post...

0 Likes
0 Replies
posted 8 years ago

Artisan connects to whole wrong host

Hello, I've got a problem setting up Attendize, which is based of Laravel. Now, I entered the creden...

0 Likes
3 Replies
posted 8 years ago

How to merge pivot data into an array of pivots?

The problem that I am having is that when I output the data from the database like this: $diets = Di...

0 Likes
1 Replies
Solved
posted 8 years ago

How can i connect to mariadb? Homested+Laravel on Windows

I installed the drivers into my Homestead + laravel, but i can't connect. how can configure my confi...

0 Likes
1 Replies

lockForUpdate on Controller->Service->Repository->Model pattern

Hi, I have a Controller that needs to process a form and then do some database checks that involve l...

0 Likes
0 Replies

How to use a count-aggregate function directly on a pivot table?

I am looking for the equivalent in Eloquent/ Laravel to the SQL statement SELECT label_id, COUNT(*)...

0 Likes
2 Replies

Database caching not working ?

Hello, I made a website that allow users to post pictures. Each user's page propore pulique his phot...

0 Likes
1 Replies

Can't access data in pivot table

Hello, I'm having an issue with eloquent (outside of laravel) I can't get access to my data in the p...

0 Likes
3 Replies

¿Me podeis ayudar a relacionar 2 tablas mediante una tercera?

Quiero relacionar platos de comida con cierta cantidad de alimentos Tabla Recetas { id titulo descr...

0 Likes
2 Replies

Eloquent ORM: querying a limited set of results?

is there a way to do this with Eloquent without having to run Raw queries etc? (select count(`win`)...

0 Likes
1 Replies

Laravel Eloquent One to Many relation function not found

Scenario is: Model 1 = Room Model 2 = Hotel Model 3 = City Rooms belongs to Hotel, Hotel has many Ro...

0 Likes
1 Replies

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.