Hi, I have a problem with my plugin. I get an error when I use the Settings Model in my Routes.php file. How can I solve this problem?
Thank you :)
if(Settings::get('maintenace') == TRUE)
{
echo 'test';
}
Error: Call to a member function connection() on a non-object
Call to a member function connection() on a non-object
open: C:\wamp\www\cms\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php
* Resolve a connection instance.
*
* @param string $connection
* @return \Illuminate\Database\Connection
*/
public static function resolveConnection($connection = null)
{
return static::$resolver->connection($connection);
}