Support the ongoing development of Laravel.io →

4,608 Threads

posted 8 years ago

change place of column with migrations, after(), modifyAfter()?

Hi, i'm trying some things with migrations. i made a model, i added columns with an migration, and a...

0 Likes
5 Replies

BadMethodCallException in Builder.php line 2345: Call to undefined method Illuminate\Database\Query\Builder::photo()

Hey guys getting this error on this database save for a photo using dropzone.js here is the model ca...

0 Likes
3 Replies
posted 11 years ago

Changing the length of a column using migrations?

I do not find it in the documentation, how to change the length of a string=varchar column using the...

0 Likes
3 Replies

Multi-way Relationship?

Good day, I'm new to laravel and have been attempting to figure out how on earth to do a multi-way r...

0 Likes
2 Replies
Solved

Relating models using composite keys

I unfortunately need to import data from a third-party vendor and use their non-standard database sc...

0 Likes
0 Replies

Do something when session expire.

Hello guys, I just wanna know if it's possible to update a table on the DB when the session lifetime...

0 Likes
1 Replies

[L5] Why it takes so long? Any suggestion better?

i have this code in my controller // 1 $header = DB::table('rekap_cmd')->select('date','uni...

0 Likes
1 Replies

Query between a db table an array

I wanna make a query like this. public function find(Request $request){ $dato=$request->buscarD...

0 Likes
1 Replies

Why Laravel converts field names in POST request and add unnecessary fields?

I am making POST request: http://localhost:8081/myserver/server.php/api/v1/contracts/1 with body {...

0 Likes
0 Replies

A lot of issues with the multiauth package

Written with StackEdit. So i am struggling with understanding this laravel multi-auth concept in l...

0 Likes
2 Replies

Query builder not escaping quotes or backslashes correctly?

I have a searchbox users can use to search fields using the following query. (I've not copied in the...

0 Likes
0 Replies

Why aren't Eloquent $perPage and $table static properties?

I was wondering why the Eloquent properties $perPage and $table aren't static properties. It doesn't...

0 Likes
3 Replies

Eloquent Articles

Some misunderstandings people run into and some explanation of what is actually going on. asklagbox...

0 Likes
1 Replies

Scope in eloquent overrides my select statement

I have a scope that looks like this public function scopeNotDefault() { return $this->where('...

0 Likes
1 Replies
posted 8 years ago

foreign key not working

Hi, I just have two tables "clients" and "courses" and I would like to add in &q...

0 Likes
1 Replies

Multi Database based in url

Hello, I am developing an app that will have a global database and 1 specific database for the clien...

0 Likes
1 Replies

Laravel Undefined variable when passing variable

Beginner question : I'm passing the $wordsRow variable from the WordsController to the results2 blad...

0 Likes
1 Replies
posted 8 years ago

SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Hi, I'm starting to learn Laravel, but I'm encountering a big error for the database connection that...

0 Likes
12 Replies

Select from two tables and show everything

I want to show on the page data from two tables but with a little condition and I can't figured it o...

0 Likes
1 Replies
Solved

Laravel Eloquent Model Does not return anything or show any error

Hi, My Eloquent Model is here- <?php namespace App; use Illuminate\Database\Eloquent\Model; cl...

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