Support the ongoing development of Laravel.io →

Saving in a pivot table

When I try to save data into a pivot table I get this error. SQLSTATE[23000]: Integrity constraint v...

0 Likes
20 Replies

convert dropdown list from php code to laravel blade code how?

Hello, I need convert dropdown list from php code to laravel blade code <label> <span&...

0 Likes
1 Replies

Having trouble with returning errors and old input to the view

i have this code in my controller $data=Input::all(); $rules=array( 'first_name' => 'required...

0 Likes
1 Replies

# Create Common Form

Hi..all I wants to create common form which can be use in another forms, like address form in which...

0 Likes
2 Replies
Solved

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

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.