Support the ongoing development of Laravel.io →

website not working with WWW. prefix

Hi all, My website won't work when there is www.blog.mysite.comfront of the domain like www.blog.my...

0 Likes
1 Replies

Is it better caching SQL queries or decreasing number of requests?

Hi, folks! Let me explain step-by-step what I'm trying to achieve: My application is backend-fronten...

0 Likes
0 Replies
posted 9 years ago

How to add custom attribute in model that without in database for temporary value?

I want to store custom value that is not field in database. My point is try to select some rows and...

0 Likes
2 Replies

Modifying routes after creation

Is it possible to modify a route after it's been created. A good example of this is a package route...

0 Likes
1 Replies

Best place to do a system check before starting the app

I'm building a kiosk app which centers around managing footage which is stored on a shared drive. If...

0 Likes
1 Replies
Solved

Big problem with ajax and multi pagination

Hi all, Here is my problem, I have a page with 3 paginators, and they are put on 3 modals. I am usin...

0 Likes
0 Replies

Self reference table

I didn't set the model for this table. But i would like to know how to process it in the view. Do I...

0 Likes
2 Replies

Redirect::back() issues

I'm having weird issues with Redirect:back() or Redirect::action('Controller@Method') It's happening...

0 Likes
18 Replies

Change .env variables with a controller

Hi, I would like to make an php installer script for my laravel application (it is a CMS). But i can...

0 Likes
0 Replies

Using Repository Pattern with Laravel

Is it worth enough to give up the "comforts" provided by Eloquent to make use of the repos...

0 Likes
1 Replies

how to support wildcard subdomain but avoid Controller::method($subdomain, $reflectedParams, ...)

Hello all, How do you support wildcard subdomains but avoid adding the $subdomain on the method of e...

0 Likes
2 Replies
posted 9 years ago

Specifying environment ('php artisan migrate --env=testing') doesn't work

Hello. When I specify environment on migrate command "php aritsan migrate --env=testing" i...

0 Likes
2 Replies

If url parameter empty, being redirected to localhost

So I've got this: Route::get('thread','ThreadController@index'); Route::get('thread/{id?}','ThreadCo...

0 Likes
1 Replies

Overriding Illuminate\Http\Response

I am building a custom Request/Response system so that Laravel can run over a RPC system called Hpro...

0 Likes
0 Replies

Change SMTP details

Hi what's the best way to replace default SMTP details to the ones coming from the database? Let's s...

0 Likes
0 Replies

Eloquent relations issue

Hi guys! First things first. I have this tables: beds id name size room status hotel created_at upd...

0 Likes
0 Replies

HomeController does not exist when deploying to server (works locally though)

Hi, Some strange things are happening. I developed a small project which works well on PC (WAMP), wh...

0 Likes
5 Replies

How to keep the column value hidden or anonymous

Hello Friends, I am developing one bidding system. I have one column where bidders name is shown. Bu...

0 Likes
1 Replies
posted 9 years ago

Is there a more efficient way to do this query?

Here's the query: /** * Get all dates and counts for an event via the database */ public function...

0 Likes
2 Replies
posted 9 years ago

LengthAwarePaginator return full list

I have this paginator $products = new LengthAwarePaginator( $collection-...

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.

© 2025 Laravel.io - All rights reserved.