Support the ongoing development of Laravel.io →

4,603 Threads

Using pivot table's id as a foreign key in another table

Hi, I need to use pivot tables id as a foreign key in another table. for example i have following ta...

0 Likes
0 Replies

how to use join on more thane 3 table using Eloquent / Convert the above query in Eloquent way

table name ( class name of model ) user ( UserModel ) id, name product ( ProductModel ) id, name, us...

0 Likes
1 Replies

Multiple databases or no?

Hello all, Currently I am working on Laravel application that uses many databases. It's organized in...

0 Likes
3 Replies

MariaDB with Laravel 5

Hello, I want to use MariaDB with Laravel 5, can i use Homestead or some other VM. I tried protobox...

0 Likes
0 Replies

Multiple tables in model

My Index page uses 3 tables in the database: index_slider index_feature footer_boxes I use one con...

0 Likes
9 Replies
Solved

How do you trap a queryexception and display a user friendly page?

If there is a query error while using Eloquent, how do you trap it and redirect the user to a friend...

0 Likes
0 Replies

Convert the query in eloquent ( which relationship to use in user model )

user table id name username email password role id name role_detail role_id -> primary of ro...

0 Likes
2 Replies

Ajax Post to controller with json (array data) and retrieve

Hello friends. I am stuck at a point. I want to post array of user ids to controller from javascript...

0 Likes
0 Replies

GUI Database Designer

im currently building this database designer inspired by laravelsd that works offline, i will releas...

0 Likes
6 Replies

How to make Controller query more beautiful??

Hello, I have this similar code in my 3 controllers, How can i make this code more beautiful?? Thank...

0 Likes
2 Replies
Solved

Relations from USER through USERDATA to LstCOUNTRY/LstAREA? Help

hi, friends sorry for my newbie question. Maybe it is very simply ... I have db-table "users&qu...

0 Likes
0 Replies

Unable to update field of model (column signedBy)

I’ve Model named “Payment”, and want to update 2 field (shipmentStatus and signedBy) $payment->sh...

0 Likes
0 Replies

Raw select using jenssegers Laravel-MongoDB

I add jenssegers Laravel-MongoDB package into my Laravel 4.2 project, and have a one problem. Maybe...

0 Likes
0 Replies

Media Uploading and referencing

As a small side project I'm looking at building a small music application. I want to be able to uplo...

0 Likes
0 Replies

sql to eloquent

query (works true): SELECT User.full_name as user_full_name,Setter.full_name as setter_full_name,st...

0 Likes
4 Replies
Solved

Point New Website Versions to old Websites

Hi, I am developing a website created in Laravel 4. Suppose I have the following websites: website...

0 Likes
0 Replies

Assigning multiple users to a task

Okay so I'm creating a task manager for my company. A user can assign assign a task to multiple othe...

0 Likes
3 Replies

search for permission role

Hi everybody! I'm a newbie in laravel and I'm trying to create a interface to manage users roles and...

0 Likes
2 Replies
Solved
posted 10 years ago

Override/replace \Illuminate\Database\Query\Builder for database queries

Groups::find(1); class Groups extends BaseEloquent { } class BaseEloquent extends Eloquent {...

0 Likes
0 Replies

Same request in laravel and in phpMyAdmin give different result, why ?

Hi I execute a request with Db::raw in my laravel model. When i do the same request in phpmyadmin, t...

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.