Support the ongoing development of Laravel.io →

4,311 Threads

HasMany with Where in Scope

I want to do something like that, but laravels error says Unknown column 'assignable_table.assignabl...

0 Likes
3 Replies
Solved
posted 8 years ago

touching 2 way's between models

Hi, When i have a product model and a category model, i want them to touch both ways, but im getting...

0 Likes
6 Replies
posted 8 years ago

setting touch in eloquent model vs in the database?

Hi, Standard of eloquent is to set the touch in the model to update the updated_at timestamp. But yo...

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
posted 8 years ago

models not in app/models folder when generaten by artisan?

https://laravel.com/docs/4.2/eloquent#basic-usage says: To get started, create an Eloquent model. Mo...

0 Likes
4 Replies

Decrement Each Value for get url acces

When i acces main?company_id in url of my site, i must do decrement -1 for row user , i try this : $...

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

multiple File Upload

Hi there, I'm try to integrate jqueryFileUpload in my larvel 5.2 project. I can upload the images o...

0 Likes
3 Replies

Problems with Auth::user()

Hi, this should be easy to do, but I'm getting an error and at this point I reallly don't know where...

0 Likes
4 Replies
Solved

Easy endless scrolling via jQuery.jscroll and Laravel paginator

I stumbled onto this suuuper simple way to initialize an endless scroller through jQuery Here is the...

0 Likes
5 Replies

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
posted 8 years ago

Artisan migrations - MODELS, and autogenerated code!

A basic and easy question... If you make a migration using "php artisan make:migration create_[...

0 Likes
1 Replies

How to store a empty value as null in a Decimal field

Hi there, I have a problem when I try to store a empty string into the database, laravel stores it a...

0 Likes
4 Replies

Changing Eloquent models database connection at runtime

Is there any way to force Eloquent models to re resolve the connection they were instantiated with?...

0 Likes
3 Replies
Solved

PROBLEM: Multiple store of data using attach().

Im getting this error "Undefined offset: 1" what should I change here: Controller: pub...

0 Likes
0 Replies

Call to undefined method Modules\Oauth\Repositories\Eloquent\EloquentMemberRepository::attempt()

$email = $request->get('email'); $password = $request->get('password'); $password = md5($p...

0 Likes
0 Replies
posted 8 years ago

model save

Hi, I'm wondering if i'm the only one who got null when I save a model instead of true previously ?...

0 Likes
0 Replies

Saving multiple data in database

What should I change to save multiple data here? Thanks in advance. This should be the output fsr_nu...

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.

© 2024 Laravel.io - All rights reserved.