barryvdh / laravel-elfinder

elFinder bundle for Laravel
738 stars 171 forks source link

Unable to create route #123

Open nehulagr opened 8 years ago

nehulagr commented 8 years ago

Hello, i am trying to create route but dont know how do that exactly. Here is how i did.

Route::get('elfinder.ckeditor', 'Barryvdh\Elfinder\ElfinderController');

And not getting any idea how to create it. Because i dont have any controller for this.

Here is what error i am getting:

UnexpectedValueException in Route.php line 539:
Invalid route action: [App\Http\Controllers\Barryvdh\Elfinder\ElfinderController]

Please suggest what should i do to make it work?

nehulagr commented 8 years ago

I just tried this as well:

Route::get('elfinder/ckeditor', array(
            'as' => 'elfinder.ckeditor', 
            'uses' => 'ElfinderController@showIndex')
        );

But problem now is

Not Found

The requested URL /elfinder/ckeditor was not found on this server.

Looking forward for any solution. Thank you!