Support the ongoing development of →

4,237 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

class app\model not found

showing the error: Symfony\Component\Debug\Exception\FatalThrowableError Class 'app\Modo' not found...

0 Likes 2 Replies

Cannot get the model attibute using eager load in Eloquent

Hi, Please refer below link and help me:

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

Error when using relation belongsToMany with Eloquent

Laravel Version: 6.1.0 PHP Version: PHP 7.2.19-0ubuntu0.18.04.2 (cli) Database Driver & Version:...

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

Laravel OrderBy relationship count without loading models

have an episodes table and an episode_Listen table, which is a One episode to Many listens I want to...

0 Likes 0 Replies

API using Eloquent ORM - how to create different responses?

Hi, Warning: for fun, I am trying to learn using Laravel. I am not an experienced developer. However...

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

Relationship many to many with 3 tables

Hello everybody, I'm a newbie and I have a question with relationship. Roles Permissions Role_Permis...

0 Likes 1 Replies

how to get all ratings for a specific category?

Hello I want to be able to access all the ratings of a category in ecommerce application. here are t...

0 Likes 0 Replies

From Database (Text) to XML

Hi guys, In my bdd I have a column (text) called "xml_documento" which store a XML in text...

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

Select limit of items in hasmany

Hi! I'm new here and just a question! The situation: There are categories, which can have multiple p...

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

Bootstrap Tab and laravel pagination

Hi, I'm new to the framework, and I like it; but I'm stuck on something; I use the bootstrap tab and...

0 Likes 1 Replies

Pagination, whether or not to render in Blade based on query

I’ve got an admin-type page that allows the use to either Browse using pagination through all cours...

0 Likes 1 Replies

Thanks to our community

Solutions given in the past year.


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.