Support the ongoing development of Laravel.io →

4,301 Threads

How to structure a database table?

Seeking for experienced advice on structurizing the database table. I have a 7 day money balance tab...

0 Likes
2 Replies

Pluralization of phrases in inflector.

Hi. How can I add a rule to the inflector for pluralization of Spanish phrases? I have the following...

0 Likes
0 Replies

Help with search string Laravel 5.8

Developers, I'm doing a search function and I can not bring the variable into sql? can anyone help,...

0 Likes
3 Replies

Auto Delete DB records every weekend

Hi everyone, I need help on how to auto delete all blogposts with status of draft every weekends (sa...

0 Likes
2 Replies

create count point using one to many

i want create count point using one to many, desc: tb_user : user_id | name | point tb_customer...

0 Likes
0 Replies
posted 4 years ago

Why should Model has a real increment method

I got an IDE warning when using increment on a model, The code works. I found that increment was ro...

0 Likes
0 Replies

the morphOne relation always return null

im setting up a One To One (Polymorphic) like this My Models: namespace App; use Illuminate\Database...

0 Likes
0 Replies

Jenssegers Mongo Eloquent, seems wrong behavior

Hi, Case: I want to update a value in MongoDB using Jenssegers Mongo Eloquent. The existing data val...

0 Likes
0 Replies

Select records from one table that do not exist in another

How do i Select all records from one model that do not exist in another model in Laravel ? So far he...

0 Likes
1 Replies
posted 4 years ago

Why User::find method call User constructor 3 times?

In api.php Route::get('/abc', 'App\UserController@abc'); In UserController.php public function abc(...

0 Likes
4 Replies

How do i allow entry twice in 24hrs

I am trying to create an workplace check in and checkout system for workers but i want to allow a us...

0 Likes
0 Replies

Get the child to parent title

I am trying to get recent comments. Using the below works. $recentcomment = Comment::latest(); how...

0 Likes
3 Replies

Checking if data exists in child of a parent before creating

Am new to laravel (total greenhorn), it would be awesome if anyone can help me with this. I have a m...

0 Likes
4 Replies
posted 5 years ago

Function to check if user has data in multiples tables

I need to make a function witch can be called in a foreach loop such has : foreach($users as $user){...

0 Likes
4 Replies
posted 5 years ago

"with" clause with attributes returning empty results.

I am trying to retrieve a specific attribute from a one to many relationship using "with"....

0 Likes
1 Replies

RouteBinder - an open source library - feedback most welcome

RouteBinder is a package designed to help you with clean model validation when using Laravel route b...

0 Likes
0 Replies

morphTo Relationship count()

Hello There, I have a morphTo between two tables Courses and Workshops and the Pivot Table is Regist...

0 Likes
1 Replies

Detach Pivot with 3 keys

It has the following tables: companies, addresses and company_address. I want to remove a record fro...

0 Likes
4 Replies
Solved

Difference between Myclass::insert() vs Myclass::create()?

Can someone let me know the difference between Myclass::insert() vs Myclass::create()?

0 Likes
4 Replies

MyClas::insert($data) not calling ORM save event?

we are trying to log the changes made to the models via ORM laravel 5. There are default events whic...

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.