Support the ongoing development of Laravel.io →

4,314 Threads

Help with whereHas query

Hello, I am trying to query two hasMany relationships, if an id is in the url I would also like to p...

0 Likes
0 Replies

File upload with L5

I can get my file name into my database but how do you set the path for the file or image to upload...

0 Likes
1 Replies
Solved

create new column to a DB table programmatically via Schema Builder?

Hi there, is there a way to add, update and delete an additional column to an existing Model/DB tabl...

0 Likes
8 Replies
Solved

Why use Models????

If I use an MVC why can't I put all calls to the database inside my model? I'm watching Laracasts an...

0 Likes
5 Replies

Using model to check if the database contains values

I am using my model to query the database and then check if there are values in my DB and if the rec...

0 Likes
0 Replies
posted 10 years ago

Get plain Eloquent QueryBuilder

Hi, I need to get a query builder for an Eloquent model, one like returned by Model::where(...), but...

0 Likes
0 Replies

Eager loading duplication

I'm trying to set up eager loading to prevent N+1 queries, but I'm finding that I have to duplicate...

0 Likes
0 Replies

watson/validating is not validating

Hello. There's my controller code: $site = new Site; $site->fill(Input::only('name', 'slug', 'con...

0 Likes
1 Replies

variables undefined

I have script: $("#consigneeBtn").on('click', function() { var id = document.getElementByI...

0 Likes
0 Replies

Trying to get property of non-object

I am extremely confused why I am getting this error: ErrorException (E_UNKNOWN) - Trying to get prop...

0 Likes
0 Replies

Does not work authorization

Hi, coders! Authorization does not work, bring the class code: function postEnter( ) { $login = In...

0 Likes
0 Replies

if statment in query

Hello, I have two tables in db mt4_users and mt4_trades the realtion btween two tables is login_name...

0 Likes
8 Replies

Improve for my sortable table approach

Hello everybody I had to create a sortable table. I've described my solution here: https://janikvonr...

0 Likes
0 Replies

Use Kohana user table in Laravel app

I have the following situation: Huge application, running with Kohana on a mysql database. Admin pan...

0 Likes
0 Replies

Schema builder and MySQL "SET" column type

Hi, I need to create a "SET" type column in a table and just found out that schema builder...

0 Likes
2 Replies
Solved

AutoHydrate Ardent Model, but sometimes manually assign?

So I have my Model setup like this: [code]protected $fillable = array('dragon_id', 'name', 'gender')...

0 Likes
3 Replies

Artisan runs from CLI but Artisan::call doesn't?

Hi, I'm having a weird error. The following one runs fine on CLI: php artisan migrate --path=workben...

0 Likes
2 Replies

how to convert after upload image to base 64 in laravel to save in db?

Hello, how to convert after upload image to base 64 in laravel to save in db? upload code here $file...

0 Likes
4 Replies
Solved

Keeping code tidy

What is the best way of keeping code tidy. Is there any blogs on this subject? I have read the Larav...

0 Likes
0 Replies

Using radio Buttons

I need to send more values through a radio button however I cannot seem to get those values back on...

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.

© 2025 Laravel.io - All rights reserved.