Support the ongoing development of Laravel.io →

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 9 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 7 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 7 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 7 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 8 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 7 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

Unit testing get error value about form request. Session missing key: errors

I'm try to write a unit testing for test form request in Laravel 5, but I can't not get data from &q...

0 Likes
2 Replies
Solved

Database Errors After Swapping Out User.php for Another Class

I just installed laravel and created a new project. I ran php artisan make:auth which provides a lo...

0 Likes
3 Replies
Solved

Queuing/throttling client apis that are throttled

I am working on a project that involves accessing client apis on their behalf. these apis have thro...

0 Likes
0 Replies

recursive function many-to-many self referencing model

I have a model called Product that has the following self referencing many-to-many relation: // pare...

0 Likes
0 Replies

display related object in blade ( dinamicly )

the solution must be simple but i cant see it Iam passing an array to the view, whit all the fields...

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

© 2024 Laravel.io - All rights reserved.