Support the ongoing development of Laravel.io →
posted 6 years ago
Last updated 2 years ago.
0

First of all, the word "share" should be all lower-cased:

View::share('minimum', '30');

Secondly, how are you running the query? This code should be within the boot() method of the AppServiceProvider. You can get access to the database like this:

$db = $this->app->make('db');
0

Sign in to participate in this thread!

Eventy

Your banner here too?

My J mj Joined 24 Aug 2018

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.