Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Get the following error ErrorException in FileViewFinder.php line 137: when implementing one of the examples below #3

@qedpro10

Description

@qedpro10

So I copied the candlestick example into my laravel project

Detailed description

this function is in my controller
public function show($id) {

    $stock = Stock::find($id);

    if(!$stock) {
        Session::flash('message', 'The stock you requested could not be found.');
        return redirect('/');
    }

    $rows = [
                ['Mon', 20, 28, 38, 45],
                ['Tue', 31, 38, 55, 66],
                ['Wed', 50, 55, 77, 80],
                ['Thu', 77, 77, 66, 50],
                ['Fri', 68, 66, 22, 15]
            ];


            $options = [
                'legend' => 'none'
            ];


            $cols =[];

    return view('stocks.show')->with([
        'stock' => $stock,
        'rows' => $rows,
        'options' => $options,
        'cols' => $cols,
    ]);
}

This is part of my view

    <h1>{{ $stock->ticker }}</h1>

    <a href='/stocks/{{ $stock->id }}'><img class='logo' src='{{ $stock->logo }}' alt='Logo for {{ $stock->ticker }}'></a>

    <p>Company Website: {{ $stock->website }}</p>

    <p>Added on: {{ $stock->created_at }}</p>

    <p>Last updated: {{ $stock->updated_at }}</p>

    {{!! ChartManager::setChartType('candlestick-chart')
                    ->setOptions($options)
                    ->setCols($cols)
                    ->setRows($rows)
                    ->render() !!}}


    <a class='stockAction' href='/stocks/edit/{{ $stock->id }}'><i class='fa fa-pencil'></i></a>
    <a class='stockAction' href='/stocks/{{ $stock->id }}/delete'><i class='fa fa-trash'></i></a>

</div>

Provide a detailed description of the change or addition you are proposing.

Make it clear if the issue is a bug, an enhancement or just a question.

Context

The context is that this package doesn't seem to work after its installed.
I following the install directions and yet get this error.

Why is this change important to you? How would you use it?

How can it benefit other users?

Possible implementation

Not obligatory, but suggest an idea for implementing addition or change.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used (e.g. PHP 5.6, HHVM 3):
  • Operating system and version (e.g. Ubuntu 16.04, Windows 7):
  • Link to your project:
  • ...
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions