Support the ongoing development of Laravel.io →

4,231 Threads

13 Sep, 2019 at 05:31

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
20 Sep, 2019 at 05:18

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
18 Sep, 2019 at 02:58

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
29 Aug, 2019 at 09:17

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

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

Error when calling scope method - deprecated non static meth

I have a model and I have a method and also a scope that looks like this: public function scopeDue($...

0 Likes 0 Replies

Laravel Filtered Excel View blade Exports Everything to Exce

I am using PHP Version 7 - Laravel 5.8 and "maatwebsite/excel": "^3.1". When I f...

0 Likes 0 Replies

Retrieve Models with invalid Category Subcategory relations

I have three Models Record, Category and Subcategory. The Record table stores category_id and subcat...

0 Likes 1 Replies

Problem with foreach and design of table

Hi, I have a problem with the cells in the table after foreach loop. He does not want to sort me the...

0 Likes 0 Replies

I need to custom return data pagination and view path

I need to custom return data like this and view path but I dont know how to extend service provider,...

0 Likes 1 Replies

List Categories with count of associated products Laravel 5

I would like to have a list of categories of products with the respective quantity of products assoc...

0 Likes 0 Replies
12 Jul, 2019 at 11:41

Date Attribute Casting not working

I have a model class Enrolled extends Model { protected $table = 'enrolled'; protected $casts = [...

0 Likes 0 Replies

Laravel 5.8 memory leak

Demo Repo https://github.com/fukuball/Leak58 Laravel memory leak example It is normal to loop and pr...

0 Likes 2 Replies

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

Thanks to our community

Solutions given in the past year.

Moderators

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.

© 2021 Laravel.io - All rights reserved.