Support the ongoing development of Laravel.io →

4,311 Threads

hierarchy relation with same table and display as tree in blade

Hi This is my table of categories with parent id $table->increments('id'); $table->string('cat...

0 Likes
3 Replies

Form data not saved to db

Hi I am unable to save data from my form: This is my view: @extends('app') @section('content')...

0 Likes
5 Replies
posted 9 years ago

Why laravel doesnt keep model structure inside model file instead of migration file?

I dont really have specific problem, I am just wondering why is Laravel build like this. Django mode...

0 Likes
0 Replies

help me to create Credit or point system for a web application

hi, i am trying to create a credit or point system for my web application that use Laravel 4,2.. my...

0 Likes
1 Replies

How to run this sql in laravel?

I am trying to run a vary complex sql in laravel: SELECT SUM(t.total_revenue) as total...

0 Likes
1 Replies

Modular Structure Laravel

Hello I'm making a website that have two points: Clients Business Clients: static pages like home,...

0 Likes
1 Replies
Solved
posted 9 years ago

Stuck on Many-to-Many relationship attribute issue

Hi there I'm new to laravel so please excuse me if this question is dumb or already answered. I'm tr...

0 Likes
0 Replies

Why Eloquent use count(*) to join ?

Hi Everyone. I Was wondering why Eloquent use count(*) to join between two tables? For exemple, if I...

0 Likes
0 Replies
posted 9 years ago

Check if array of records exist

Hello, I have array of ids: $games = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10 .....]; I want to check which o...

0 Likes
0 Replies

Strange Laravel behavior when updating a model

I have this sample route: Route::get('orders/{orderid}/cambiaestado/{estado}', function($orderid = n...

0 Likes
2 Replies
Solved

How to add/prepend new item in collection without altering the collection keys?

Hi, Any idea how to add an item to the beginning of the collection without altering the collection k...

0 Likes
0 Replies
posted 9 years ago

Models relationship data

Hello i have 2 models with Many to many relationship. How can i access for this data? Models : clas...

0 Likes
2 Replies
Solved

Is this relationship possible in Laravel?

I have been banging my head for the last few hours trying to get this to work and have started to qu...

0 Likes
11 Replies

undefined index:car

I have a table called dealer_services having structure as id dealer_id (foreign key) bike car financ...

0 Likes
1 Replies
Solved

Saving dynamically created form field array to db Laravel way

I have this input in my view: {{ Form::text('first_name[]', null, array('class'=>'form-contro...

0 Likes
9 Replies
posted 9 years ago

Raw query and Datatables in Laravel 4.2

I'm using Laravel 4.2, didn't had the time to switch to 5.x. I need to make a somewhat complicated q...

0 Likes
0 Replies

Which laravel query to use to sort top entries according to related table

Hi all, I have two models: posts and likes. Posts and likes have one-to-many relationship (so, one p...

0 Likes
1 Replies

Inserting data into table with foreign Key

During registration, I am inserting rows into various tables which references another table using fo...

0 Likes
1 Replies
Solved

Standard Output Single Column From Collection

Hi, I'm new to laravel and wonder if someone could put me out of my misery with this simple piece of...

0 Likes
1 Replies

How to display input validation error messages after an unsuccessful registration

I'm using the eloquent authentication driver. After an unsuccessful registration, a user is redirect...

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