Support the ongoing development of Laravel.io →
posted 11 years ago

DB::Raw question

Ok, This works well $total_sales = OrderLine::where('product_id', '=', $product->id)->sum('qua...

0 Likes
2 Replies

Cleaning up my controller

Hey guys, I have this working controller, that I would like to clean up if possible, since i am sure...

0 Likes
3 Replies
Solved

3NF database design ( And Conditions )

I have a 3NF design (Tag , Item_Tag, Item) As below but it wont work because i'm looping the same ol...

0 Likes
2 Replies

Artisan doesnt create table

I tried to create a table with artisan but it`s not setting up the table: I already puted the relev...

0 Likes
0 Replies

Meta Data store suggestion

I am trying to create an application that would store lots of meta data for a user and the same meta...

0 Likes
2 Replies
Solved
posted 11 years ago

Request::is() equivalent for action based routes ? Or named based routes ?

Hi ! I have a navigation menu with childrens. So I need to put a class active to the element when is...

0 Likes
0 Replies

How to create chain method and add to "Facade"?

Dear all, I want to create chain method like: 1- like View View::make(....)->with(...).... // mus...

0 Likes
2 Replies
posted 11 years ago

Problems with Eloquent ORM, namespaces and "with" function

I have this models: app/Models/Instance.php <?php namespace App\Models; use Eloquent; class I...

0 Likes
1 Replies
posted 11 years ago

Redirect Loop

I want to redirect different User types to same '/dashboard' url. So basically after login when rout...

0 Likes
5 Replies
posted 11 years ago

Overwriting Eloquent::create with additional parameters

Hey, I just watched Coding with intent and tried to apply some of the ideas from the episode. I hav...

0 Likes
1 Replies
posted 11 years ago

What do I need to learn first?

I'm new to PHP completely and also new to dynamic web building in general. I've done a little html a...

0 Likes
5 Replies

Controller for a resource implementing show() doesn't work

I created a class called Product to persist in the database via a migration. Now I want to alter its...

0 Likes
0 Replies

how to show custome error pages, 400, 404, 500

how to show custome error pages, 400, 404, 500 read the docs but still couldn't get the hang of it.....

0 Likes
1 Replies

Use jQuery Datepicker to redirect to page

I have an inline jQuery Bootstrap Datepicker on my homepage. When someone clicks on a date, I want t...

0 Likes
2 Replies
Solved

Routing, match two routes and decide in controller

Hi, I have a special case that I can't find a solution for in the routing. I know I could change the...

0 Likes
0 Replies
posted 11 years ago

Laravel is in Demand

Hey guys I'm new to this community but not new to programming. My company, Dickson Resources, is se...

0 Likes
3 Replies

Redirect::intended() and POST routes

Hi everyone, I'm having a bit of trouble with this question : How to access a post route with Redire...

0 Likes
2 Replies
Solved

Adding ServiceProviders / Facade from a package ?

I have face this question several times. Sometimes I write a package that uses one or several 3rd pa...

0 Likes
4 Replies
Solved

Using model scopes gives Method not found

I'm having a bunch of trouble with model scopes. I have one scope that works properly, called direct...

0 Likes
4 Replies
Solved
posted 11 years ago

Raw SQL to Eloquent form

How do I translate this to eloquent or query builder? DELETE p1 FROM products p1, products p2 WHERE...

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.

© 2025 Laravel.io - All rights reserved.