Support the ongoing development of Laravel.io →

991 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

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

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

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

Laravel unique validation on multiple columns for unique relations

How do I perform a Laravel unique validation on multiple columns for unique relations. One user can...

0 Likes
3 Replies
Solved

How to update database table when change the Migration ?

If I change the Migration Structure (such like CreatePasswordResetsTable) How I to change the databa...

0 Likes
5 Replies
Solved

Laravel 5 Sort data in Alphabetical Order

What is the best approach to display data in Alphabetical order using Laravel. what is the best way...

0 Likes
1 Replies
Solved

QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'

Illuminate \ Database \ QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' i...

0 Likes
2 Replies
Solved

Verify email address after user registration

I want to develop a forum that will require a user email verification after registration. I don't kn...

0 Likes
5 Replies
Solved
posted 7 years ago

How do I call private in my model

I'm using Laravel 5.3 I have custom model follow namespace App\Models; use Illuminate\Database\Eloqu...

0 Likes
2 Replies
Solved

eloquent relations

I have two tables one is templates and the other is template_images Showing migration of the two tab...

0 Likes
1 Replies
Solved

MySQL Empty User Won't Connect to DB

Hello! I am new to Laravel and I spent the last 6 hours trying to get my application to connect to M...

0 Likes
4 Replies
Solved

Tutorial Laravel 5.x create a simple web app

I'm newbie. I want to create a simple web app (ex: a forum only have home page and post pages, in ea...

0 Likes
1 Replies
Solved

How should I name an Eloquent polymorphic table?

I am using Laravel eloquent to design my database. Eloquent has a naming convention for naming a man...

0 Likes
1 Replies
Solved

Create dropdown using lists() method to get two columns and combine them in final view

I was working with dropdowns and was thinking if it is possible to use lists() method to get two col...

0 Likes
4 Replies
Solved

Laravel 5.4, problem saving an associated model

i'm trying to save a new tvshow and it's episodes into the database with the following code but in t...

0 Likes
1 Replies
Solved

Relationships, Controllers, and Views

Ok, really quite stuck at the moment trying to wrap my head around relationships and how best to use...

0 Likes
5 Replies
Solved

Geting comma separated values as ID for another table

Hi guys, so i have this input from invoice_table, "order_numbers", with values something l...

0 Likes
1 Replies
Solved

DB select get only first row

I have a row query \DB::select("SELECT * FROM table_name WHERE id=$id"); the result shoul...

0 Likes
5 Replies
Solved

Artisan Migrate Not Working

I'm having problems with my migration code, This is the error I'm recieving: PHP Parse error: synta...

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