public static function jsonFileContent($filename)
    {
        $fileFullname = Config::getResourceFilePath($filename);

        if (!File::exists($fileFullname)) {
            throw new Exception('The resource file ' . $fileFullname . ' was not found! Perhaps, you need to run PHP artisan resource-file:create [model-name]  or resource-file:from-database [model-name] ');
        }

        return File::get($fileFullname);
    }
public static function jsonFileContent($filename)
    {
        $fileFullname = Config::getResourceFilePath($filename);

        if (!File::exists($fileFullname)) {
            throw new Exception('The resource file ' . $fileFullname . ' was not found! Perhaps, you need to run PHP artisan resource-file:create [model-name]  or resource-file:from-database [model-name] ');
        }

        return File::get($fileFullname);
    }
public static function jsonFileContent ( $ filename ) { $ fileFullname = Config :: getResourceFilePath ( $ filename ) ; if ( ! File :: exists ( $ fileFullname ) ) { throw new Exception ( 'The resource file ' . $ fileFullname . ' was not found! Perhaps, you need to run PHP artisan resource-file:create [model-name]  or resource-file:from-database [model-name] ' ) ; } return File :: get ( $ fileFullname ) ; }
Gets the content of the resource json file.

@param $filename

@return string
Gets the content of the resource json file .