Support the ongoing development of Laravel.io →

3,600 Threads

when i use pagination with alias columns i get an error

Schema::create('costs', function ($table) { $table->increments('id'); $table->unsignedInteger(...

0 Likes
0 Replies

Cannot get the model attibute using eager load in Eloquent

Hi, Please refer below link and help me: https://stackoverflow.com/questions/58338282/cannot-get-the...

0 Likes
0 Replies

[Ask] Laravel[6.2] Query Builder

Dear All, I have query builder : DB::select("select `id`, `user_name`, `user_email`, (select s...

0 Likes
0 Replies

Replacing files in folder & db on update using polymorphic

Hello! I'm in practice mode with Laravel, and I've tried this at least 80 different ways, based on t...

0 Likes
1 Replies

Fake relationships

Hi, Is it possible to create a fake relationship between two models? Let me explain! I have two mode...

0 Likes
2 Replies

Search multiple options

Hello everyone, I am new to Laravel. I want to create a property search engine. my properties has an...

0 Likes
0 Replies

How to create a query out of this!

Hi there, How can I convert this SQL into PHP? UPDATE cashbooks SET amount = amount - (SELECT amo...

0 Likes
2 Replies

Laravel Eloquent Relationship with 2 pivot tables

I'm new with relationships and eloquent. I still don't really understand working with eloquent and p...

0 Likes
1 Replies
posted 4 years ago

[SOLVED][Laravel 5.8.13] Laravel Query Builder Subquery

[I've used whereRaw on Subquery] Dear Sir, I have some problem on below, $withRanks = DB::...

0 Likes
0 Replies

Insert in Database number of seats

How to insert in database number of the seat from the bus and check what seats are available. What I...

0 Likes
1 Replies

Convert Query Builder to Eloquent Model

Hi, I'm trying to convert a query to models: My query: $article = DB::table('Article as A') ->joi...

0 Likes
0 Replies

Attach not refreshing the attached records

Hi, I'm using Tinker to test my models, and whenever i attach something to a model, i need to exit t...

0 Likes
0 Replies

take input of comma separate text and insert in db inviduall

i have a input fields to insert names to the database at the moment it works like every time i enter...

0 Likes
1 Replies

Inserting into two tables with single form

I have register form, in that form there is select form which decide if user is farmer or buyer. If...

0 Likes
2 Replies
posted 4 years ago

Base de données/Insertion de données

Je veux insérer des données dans ma base de données mais lorsque je lance mon artisan, on m'écrit ça...

0 Likes
1 Replies

The best way to code mlm app?

We like to implement a system for a Network Marketing Company that operates in several countries but...

0 Likes
2 Replies

Populating a column from database into select2 via jquery

I'm trying to populate tags from the database into a select2 field. The data is returned in the insp...

0 Likes
1 Replies

Bit of a strange error.

Ok, so I'm trying to create a support code that expires and is updated with a random code every 24 h...

0 Likes
2 Replies

pass a mysql query to a laravel query builder

I have a slightly complex query that I first made in flat mysql, but I don't know how to translate a...

0 Likes
1 Replies

Database Transaction for static methods

Hi, I've been trying to use database transactions with some static functions I created. But, is this...

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.