Support the ongoing development of Laravel.io →

Search function in API

I'm willing to implement a search function with a Integration of a school API. in other words. I'm w...

0 Likes
6 Replies
Solved
posted 10 years ago

Singleton dependancy injection

Hello everyone! Can someone explain me how to inject a singleton class to Controller constructor? I...

0 Likes
0 Replies

Vagrant+Homestead: The host path of the shared folder is missing: ~/Code

I'm getting this message on Windows 7 (32bit, HAV enabled). Here's that section of my Homestead.yaml...

0 Likes
3 Replies

Cache only view data and drop session data

Hello I'm using this package: https://github.com/ipunkt/laravel-route-cache for caching my routes, b...

0 Likes
3 Replies

Laravel not validate that the database is up?

When doing the login with the method Auth::attempt() I get this error: ErrorException htmlspecialcha...

0 Likes
0 Replies

Trying to learn TDD

I'm reading through Jeffery Way's book "Laravel Testing Decoded" and I've run into a snag....

0 Likes
0 Replies

URL::previous() not working as expected

Hi guys, The URL::previous() function is always returning my base URL. Has somebody encountered this...

0 Likes
0 Replies

Loading a blade template from Laravel into Wordpress

I have a Laravel site that has an existing Wordpress blog with a different theme. I'd like for the b...

0 Likes
2 Replies

Yet another MAMP vhosts issue

Hey I've been reading through a few issues on here with MAMP vhosts and they've been a great help ge...

0 Likes
0 Replies

I extend Ardent, how to extend a other class

I use Ardent for my models, but i want to use this packages: https://github.com/lazychaser/laravel-n...

0 Likes
0 Replies

How to store ip address at Laravel?

So I want to store users ip in my database, but I coulnd create VARBINARY(16) in my schema builder....

0 Likes
2 Replies
posted 10 years ago

Laravel roadmap

Why have a roadmap if you don't respect it? This makes the usage of Laravel limited to hobbyists, ho...

0 Likes
1 Replies

My function takes too much time to execute ????

I have a static function in one of my Model named invoice which is as follows public static function...

0 Likes
5 Replies

A global object available for all files and Models that don't represent database tables

Sorry for the noob question, I'm using an Instagram API library all across my website, every view us...

0 Likes
1 Replies

Relation with extra condition

TL;DR how to address the same table's field in the additional condition like this: $this->hasMany...

0 Likes
3 Replies
posted 10 years ago

Does Auth::user() create a database query each time I use it?

Does Auth::user() create a database query each time I use it?

0 Likes
7 Replies

From CodeIgniter to Laravel question about Basic routes like in CodeIgniter

Hi guys i came from CodeIgniter! The new user of Laravel! Congrats In CodeIgniter if you create admi...

0 Likes
5 Replies
Solved

How to initialize my Model to save data coming from Ajax request

I am a bit confused on initializing my Model when the data is coming from Ajax request. For general...

0 Likes
1 Replies
posted 10 years ago

ManyToMany with whereHas and pivot

I have a M2M relationship from User->Clubs with an intermediate table which contains the join dat...

0 Likes
2 Replies
Solved

SoftDeletingTrait: What is the point?

Hey, lately I have got a lot of troubles with models that use the SoftDeletingTrait. If I want to ha...

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