Support the ongoing development of Laravel.io →

4,604 Threads

How do you save image to database and display it on website?

I was always against this approach, but now I am reconsidering. Is there a best practice way to do t...

0 Likes
31 Replies
Solved

{L 5.4} Check if User answered a Question right

I get some questions from my database: Controller: public function getQuestion() { $questions = Qu...

0 Likes
1 Replies

After deleting migrations file manually, receive "ErrorException: failed to open stream: No such file or directory"

Hi Folks, From my local migrations folder ([project]-->app->database-->migrations), I manua...

0 Likes
11 Replies

Laravel 5.4 get objects from db and check for user

Hey guys, I'm a laravel newbie and want to create an application to get and answer questions. In my...

0 Likes
2 Replies

Eloquent not returning all results from query?

So this is driving me a bit nuts - Eloquent will not return the full set of data. It's stuck at 426...

0 Likes
2 Replies

Laravel with AWS and DynamoDB for StartUp purpose

Hi guys, First of all: Hello to the Laravel Community. Working as a web developer in an agency I hav...

0 Likes
8 Replies

What type of relationship would the following be? (Users, Departments, and Ranks for Department)

I am building a fairly complex application that will store many different user factors. In theory, e...

0 Likes
2 Replies

DB::connection()->statement Fails when using bindings.

I am currently trying to dynamically create a database with a user provided string. I can get the d...

0 Likes
5 Replies
Solved

Eloquent query - combine "with" and "join"

Hi, is there any way to combine "with" and "join" in a single fluent query? Eg.:...

0 Likes
6 Replies

Populating a dropdown menu from MySQL database

I'm trying to populate a drop down menu with database results in Laravel 4. I'm extremely new to Lar...

0 Likes
29 Replies
Solved

Ordering by an Average.

I have two tables Product and reviews, in which the reviews contains a rating. i am trying to order...

0 Likes
2 Replies

SubQuery for Related Model

I am trying to pull all Profiles only if there is a record in the ProfileAttributes table and as a t...

0 Likes
2 Replies

Eloquent between two dates from database

i am trying to get an object from a database where the schema is timestamp period_starts_at timestam...

0 Likes
7 Replies
Solved

Eloquent Polymorphic Many to Many morphTo

Under the heading "Many To Many Polymorphic Relations" in the laravel docs http://laravel....

0 Likes
7 Replies

Laravel 5 How to change Date Format from Boostrap datepicker in Controller before Validation

i want to change the date format in controller before doing validation. Below is my view <input t...

0 Likes
2 Replies

What is local.ERROR: Call to undefined method Query\Builder::outstandingActions() ?

local.ERROR: BadMethodCallException: Call to undefined method Illuminate\Database\Query\Builder::out...

0 Likes
1 Replies

Making a service provider but want to inject the Database service into it

So Ive learned how to make simple service providers that call a helper method from a helper folder....

0 Likes
2 Replies

l5-swagger help needed, how to configure?

I am new and needed this openApi to work for my site. But didn't know the process. I am searching fo...

0 Likes
2 Replies

charset UTF8

Hello, I have simple application showing one table with results to authenticated users Illuminate\Fo...

0 Likes
1 Replies

Laravel and LDAP

I'm still relatively new to Laravel and I'm trying to work out how I can accomplish the following. I...

0 Likes
15 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.