Support the ongoing development of Laravel.io →

Is it possible to inject an interface into Laravels Kernel.php?

I am currently refactoring my Laravel 5 project in order to make use of the Repository Design Patter...

0 Likes
1 Replies

middleware issue

Hello everyone, I want to do something like this: public function destroy($id) { $user = Auth::u...

0 Likes
1 Replies
posted 8 years ago

can laravel docs site can have go to top button

while checking out docs for some queries , i have reached to the bottom of page. if i need to search...

0 Likes
1 Replies

Services and business logic

Hi Unfortunately this is one of those "where do I put that?" type questions and generates...

0 Likes
2 Replies
posted 8 years ago

How can I route pages that create by pagination to a controller

When get data from database like this $reviews = Review::latest('created_at')->paginate(5); Lara...

0 Likes
1 Replies

Use session('key') in config/app.php

Hello, I want to have 'locale' => session('locale'), But I get : Fatal error: Uncaught Reflection...

0 Likes
1 Replies

Best practice

If i need to put two variables in blade, for example name and surname, which of this two option is t...

0 Likes
1 Replies
posted 10 years ago

Difference between "file" vs "cookie" session driver

What is the difference between "file" vs "cookie" session driver?

0 Likes
5 Replies
Solved

Planning new security api , What do you want it to be ?

Hi I am Eslam Salem I am the CEO & Founder of Shieldfy. We at shieldfy decided to plan and relea...

0 Likes
0 Replies

A form with some fields hidden based on a condition.. is not very safe

I'm creating a form with Form::model , but when defining the fields i sometimes do this: @if (Auth::...

0 Likes
5 Replies
posted 8 years ago

The impact of Console\Commands on PHPUnit and Xdebug (code coverage)

TL;DR Every time a unit test is run, all Commands are instantiated, and any dependencies injected in...

0 Likes
3 Replies

how to save array of json Laravel Vue

I posted this question on Laracast forum.However,I have not got a solution,so please excuse me to po...

0 Likes
1 Replies
posted 8 years ago

How to browse an sqlite database?

Im a new developer of just a few weeks. So far so good. but i cant seem to find a way to browse an s...

0 Likes
2 Replies
posted 8 years ago

Model events not firing

Greetings... I am updating some models in this fashion: Foo::where('name', '=', 'bar')->update(['...

0 Likes
3 Replies
Solved
posted 9 years ago

Force SSL for Server Behind Load-balancer

I'm having an issue with an application (Lanager) running on a VM inside of my network. The load-bal...

0 Likes
2 Replies
posted 8 years ago

Route POST error 500

Hi,I I'm a beginner,I have a problem about Route. I write a post route,when I click submit on brows...

0 Likes
5 Replies
Solved

Delete record with modal

Good afternoon folks, I need your help, I have this car brands list with a button to edit and delete...

0 Likes
1 Replies
Solved

Use blade outside laravel

Hello everyone, I would like to know if there is a way to use the laravel view outside of laravel ?...

0 Likes
13 Replies
Solved

Laravel recursive tree to flat

I created simple recursive relationship: public function children() { $children = $this->hasMany(...

0 Likes
4 Replies

Do you want Laravel to go strict?

We have PHP 7 on the way. Laravel is quite ambitious when it comes to support for new PHP versions,...

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.