Support the ongoing development of Laravel.io →

542 Threads

hook create.session to save referrer for saving on user registration

Hi, i want to save the referrer if a user comes to my site on the first request, so a session is cre...

0 Likes
1 Replies
Solved

Passing Parameters to middlware

I am a beginner for the laravel. I am using laravel 5.0. I created a middleware and I pass the param...

0 Likes
2 Replies
Solved
posted 10 years ago

Parameter based routing

Routing in laravel is Route::get('/', array('uses' => 'HomeController@index')); I want to choose...

0 Likes
12 Replies
Solved

How to math operators on controllers

I have this and return Object of class Illuminate\Database\Eloquent\Builder could not be converted t...

0 Likes
1 Replies
Solved

How to get HTTP request in route model binding closure

Hi there, I am trying to get access to the HTTP request in my route model binding closure. This is b...

0 Likes
2 Replies
Solved

Carbon - Check how many days ago was timestamp

Hey, is it possible to get the number of days that have passed since a given timestamp, but only the...

0 Likes
1 Replies
Solved

Blank page on all routes

I have a problem, I was working on my app, and it was working allright, but today, when I started my...

0 Likes
1 Replies
Solved

Database records -- Select from time range, group by ID, sum numeric columns

Hi guys, I'm fairly new to Laravel (and web dev), but I'm trying to build a project for work. I'll t...

0 Likes
3 Replies
Solved
posted 9 years ago

Laravel & SoapServer - response has text/html contet-type instead of text/xml

I’m trying to run a SOAP service on my Laravel 5.1 app. I got it working, but there’s one little ann...

0 Likes
1 Replies
Solved

Call to a member function save() on string

I want to persist changes to Attendance model table, but I get this error: FatalErrorException in At...

0 Likes
8 Replies
Solved

[L5] Extending router

In Laravel 4 I was able to extend the router class to add API format functionality (.json, .xml, .ph...

0 Likes
8 Replies
Solved

Try Catch Guzzle

I am having issues with try catching a guzzle request. I know the auth will fail but I am trying to...

0 Likes
1 Replies
Solved

How to use OrderByRaw to get posts from database?

I currently have this code: $sidebar = Post::where('published', '=', '1')->orderByRaw("RAND(...

0 Likes
2 Replies
Solved

Image upload won't work Laravel 5

I cannot get an image to upload from a form using laravel 5. I have set 'files' to true but it still...

0 Likes
6 Replies
Solved

action routing not passing through the object

Hello, I've been stuck on this for a couple of hours. Oddly enough other routes have not had this pr...

0 Likes
2 Replies
Solved

Relationship cant access recently created model

Hello, I have this scenario: Route::group([ 'middleware' => ['reservation'], 'prefix' =&g...

0 Likes
1 Replies
Solved
posted 9 years ago

Roting Issue / Question

I have a SettingsController and in routes.php this will work: Route::get('settings', array( 'us...

0 Likes
2 Replies
Solved

laravel 5 development.ERROR

Im getting this error randomly,i search it and it seems that this happens if you havent set an app k...

0 Likes
5 Replies
Solved

how to select datas from a relation in a collection or change their names before being turned into JSON

I have been stuck on this for a while even after reading other questions & docs from Laravel. I...

0 Likes
5 Replies
Solved

Add condition to logging in

So I want to add a new condition for registered users to be allowed to login. In the database, there...

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