Support the ongoing development of Laravel.io →

Laravel OrderBy relationship count without loading models

have an episodes table and an episode_Listen table, which is a One episode to Many listens I want to...

0 Likes
0 Replies

Current approach to Stripe Checkout for Onetime Payment?

I am trying to integrate stripe Checkout on my Laravel 5.3 website for some fairly basic purchase fu...

0 Likes
1 Replies
posted 5 years ago

How to add php file to load in the body of the page?

Regarding lavary / laravel-menu It is necessary that a certain file is selected in the body of the p...

0 Likes
0 Replies
posted 5 years ago

Reduce to 2 decimal places

Hi all, I am very new to code, but was wondering how I could force my result to 2 decimal places. I...

0 Likes
0 Replies

i have problems with nullable fields

my nullable fields do not store values in the database even when the input boxes are filled. when i...

0 Likes
1 Replies

post user_id from Auth through a form?

Hi, I have a form and would like to get the user_id out when submitted here is my store function: pu...

0 Likes
1 Replies
posted 5 years ago

multiple entripoints, multiple databases

Hello, I need to implement multiple entrypoints for the same Laravel app, using a different database...

0 Likes
1 Replies

Maximum execution time of 30 seconds exceeded [Laravel 5.2]

FatalErrorException in FileTypeFilterIterator.php line 49: Maximum execution time of 30 seconds exce...

0 Likes
0 Replies
posted 5 years ago

I deleted the controller and it still works.

Hello. I modified the controller, but the modifications are not reflected. So, I rename and delete f...

0 Likes
0 Replies

Form with multiple select with ser assigned values

In my application there are Job Offers and Skills. The Offer and Skill models have a many to many re...

0 Likes
0 Replies
posted 5 years ago

Twill (Laravel CMS) meet-up in NYC

Hey NYC folks! Jesse here from the Twill team (Twill.io). We're hosting a meet-up in NY on 10/7. We'...

0 Likes
0 Replies
posted 5 years ago

unable to create a Roleuser?!

Need a bit of help with my create function, I am able to create a new User but not a new Roleuser pr...

0 Likes
3 Replies

Any way perform query on '$appends' with Accessors & Mutator

protected $appends=['sample_value']; public function getSampleValueAttribute(){ return "value&q...

0 Likes
0 Replies

Bad Request 400 - cookie to large

Hello Someone has already experienced 400 error - cookies are too large. I am using apache 2.4 ~ and...

0 Likes
0 Replies

Hello there! I am building a laravel project in which I have

I deployed my project on live server by creating subdomain app.example.net on cpanel. And put my pro...

0 Likes
0 Replies
posted 5 years ago

Translations in Laravel app

Setting up translations is extremely easy in Laravel. I have a JSON file that has all strings that n...

0 Likes
1 Replies
posted 5 years ago

How to test multiple file upload

Laravel 6 PHP 7.3 I'm trying to test upload multiple files $this->postJson('/products', [ '...

0 Likes
0 Replies

Sentinel log in not persistent

I have a Laravel 6.0 app thats uses Sentinel for authentication. I can succesfully log in however af...

0 Likes
0 Replies

How to create a query out of this!

Hi there, How can I convert this SQL into PHP? UPDATE cashbooks SET amount = amount - (SELECT amo...

0 Likes
2 Replies

Laravel Eloquent Relationship with 2 pivot tables

I'm new with relationships and eloquent. I still don't really understand working with eloquent and p...

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.

© 2025 Laravel.io - All rights reserved.