Support the ongoing development of Laravel.io →

4,587 Threads

how to reset model deleteat_at to ''0000-00-00 00:00:00" ?

I notice that laravel use 0000-00-00 00:00:00 for deleted_at time ,So i change data deleted_at like...

0 Likes
5 Replies
Solved
posted 10 years ago

Schema snapshots via artisan?

I was wondering if Artisan had a command that allowed you to create a migration snapshot of the curr...

0 Likes
0 Replies

Can't access Eloquent models from artisan command.

So I'm trying to do a very simple eloquent query, however both a select and an insert query fail. Th...

0 Likes
5 Replies

How to make an 'orderBy' case-insensitive ?

Hi all, My question here is pretty simple but I didn't find the answer on the Web. I would like to s...

0 Likes
1 Replies

Dabase record regenerated does not contain the values of the model variable

Hi everyone, I'm new to Laravel and trying to catch up with a project as much as possible. I created...

0 Likes
1 Replies

Storing Dynamic Data with a Relational Database

Hello y'all! I was wondering how can I store data from a dynamic form, which might have 10 variables...

0 Likes
1 Replies

dont show error if relation not exist , just show empty field.

Hi i have controller and i am taking data like this $events= Eventm::with('teacher')->get(); th...

0 Likes
1 Replies
Solved

Laravel With CouchDB

Hi guys, I'm developing an application that requires the use of a noSQL base,(CouchDB prefered). I k...

0 Likes
0 Replies
posted 10 years ago

I am unable to connect to mysql database using laravel 4

PDOException could not find driver this is configaration in app/config/database.php 'default' =>...

0 Likes
1 Replies

Many to Many relationship generating sql with where clause looking for null

I am trying to create a Many to Many relationship with Eloquent but the SQL generated is checking my...

0 Likes
0 Replies

Form data not being saved

I have a one page form, which data needs to be saved to 2 tables - Company and User. A Company has m...

0 Likes
3 Replies

When inserting Postgresql JSON type field in eloquent, getting a escaped string

Hi, im having this issue, more info http://help.laravel.io/628636319849786ae066f7dfe72389b0e1d3e140,...

0 Likes
0 Replies

Repository pattern: how to access related repository's method?

I have two eloquent model: Foo and Bar. class Foo extends \Eloquent { public function bar()...

0 Likes
2 Replies

Unwanted Characters in Response

hi for bad english writeing excusme when try to connect db and read some data any way my response co...

0 Likes
1 Replies
Solved

Laravel pivot table Base table or view not found

Hi im trying to query my tasks table. A little background information on the tables and how they are...

0 Likes
1 Replies

Getting data of model related as an array

Hi... maybe it's a newbie question... these are my first steps with Laravel.. suppose I have in Post...

0 Likes
2 Replies
Solved

Filtering Results in RestAPI with attributes from a related model

I'm currently building a REST API with laravel. I'm trying to implement filtering of results on a ro...

0 Likes
2 Replies
Solved

Can you use sum() or something like it in a whereHas() statement?

I have a model called 'Charges' which stores charges made by someone. I want to sum all the charges...

0 Likes
1 Replies
Solved

Controllers - Am I doing this right?

Hey, I'm new in using frameworks and I tried to figure out, how to do simple insert, edit, delete by...

0 Likes
2 Replies
posted 10 years ago

Current date in where

How do I use curdate() in a query in Laravel?

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