app/Http/Controllers/ContentController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $data = Storage::get('saveFile.json');
        $json = json_decode($data,true);
        return view('welcome')->with('json',$json);
    }
public function index ( ) { $ data = Storage :: get ( 'saveFile.json' ) ; $ json = json_decode ( $ data , true ) ; return view ( 'welcome' ) -> with ( 'json' , $ json ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $data = file_get_contents('storage/data.json'); // $blog = json_decode( Storage::get('saveFile.json')); // return view('welcome', compact('blog'));