Support the ongoing development of Laravel.io →

Setting cache expires for images in Laravel

I would like to add a cache-expires: never header to all requests for image resources being served....

0 Likes
0 Replies
posted 10 years ago

"Undefined variable: data" when using Mail::queue()

I'm getting a "Undefined variable: data" error whenever this function runs. The $data vari...

0 Likes
3 Replies
Solved
posted 10 years ago

How to cache paginated results ?

This will work $posts = Post::paginate(6); This will not work $posts = Post::paginate(6); Cache::ad...

0 Likes
2 Replies
posted 10 years ago

Hot to get controller name in Laravel 5.0

I need to setup menu style with property selected, and i want to use a controller name for that. {{R...

0 Likes
3 Replies
Solved
posted 10 years ago

Syntax Error Unexpected '=>' (beginner question)

So i have a problem like this, also im a beginner in laravel and web-development, i am creating a sa...

0 Likes
4 Replies

How to create a log in system

I am trying to create a log in functionality for my application. I have a login view which post to a...

0 Likes
5 Replies
posted 10 years ago

Testing, where to start?

I have never done any sort of testing before, but I am about to start a new project that I would lik...

0 Likes
1 Replies

Having troubles with the date.

Hi, i need to get the real date. For example i put this code on my laravel app: echo date("d-m-...

0 Likes
1 Replies

how to send value for options in dropdown list from array

Hello, how to send value for options in dropdown list from array, or how to convert output this code...

0 Likes
4 Replies
Solved

cURL or is there a native alternative?

I need to make some HTTP calls from within my routes / controllers ... and I immediately assume that...

0 Likes
1 Replies

Google Bot Accessing My AJAX Routes, Produces a 405 Error

So, I've been getting all kinds of 405 errors within my logs. I finally decided to send myself an em...

0 Likes
2 Replies
posted 10 years ago

trouble understanding my polymorphic relationship

I am building a application for a computer repair company. I have a images table: Schema::create('i...

0 Likes
2 Replies
Solved
posted 10 years ago

Auto incrementing session arrays

I know you can update an array stored in a session like this Session::push('addresses.0', 'home'); S...

0 Likes
2 Replies
Solved

Mail pretend does not write message to logs

I'm working on a project that uses Laravel to generate and send custom email messages to a database...

0 Likes
2 Replies

How to pass data to a view?

Hello, i want to pass an array of all users that have in the field: number='1' My controller: publi...

0 Likes
3 Replies
Solved
posted 11 years ago

How to append hashtag(#) to end of url with Redirect

I have following function. return Redirect::to('user/'.$id."#hash_tag") my expectation on...

0 Likes
5 Replies
Solved

Error in Homestead configuration

I've followed the steps on the site to install a Homestead machine, but it doesn't work in my system...

0 Likes
1 Replies

Best practice for testing controllers within a package?

I want to move some controllers into a package, but I also want to be able to test them. I've been a...

0 Likes
0 Replies

PHPUnit fails to run inside Homestead

I have a Homestead vm running a nearly fresh install of Laravel 5.0 (dev-develop). I globally instal...

0 Likes
4 Replies

Check to see if csv exists.

Hi, is there a laravel way of checking a file system to see if a .csv file exists? Thanks

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.