delormejonathan / laravel-js-routing Goto Github PK
View Code? Open in Web Editor NEWLaravel 4/5 package to access routes from Javascript
Laravel 4/5 package to access routes from Javascript
When I tried to install this, it failed at the clear-compiled
step with the following:
[BadMethodCallException]
Call to undefined method [package]
Exception trace:
() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:237
Illuminate\Support\ServiceProvider->__call() at /home/vagrant/zorga/vendor/delormejonathan/laravel-js-routing/src/DelormeJonathan/LaravelJsRouting/LaravelJsRoutingServiceProvider.php:22
DelormeJonathan\LaravelJsRouting\LaravelJsRoutingServiceProvider->boot() at n/a:n/a
call_user_func_array() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Container/Container.php:507
Illuminate\Container\Container->call() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:757
Illuminate\Foundation\Application->bootProvider() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:569
Illuminate\Foundation\Application->register() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:671
Illuminate\Foundation\Application->registerDeferredProvider() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:651
Illuminate\Foundation\Application->loadDeferredProvider() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:627
Illuminate\Foundation\Application->loadDeferredProviders() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:225
Illuminate\Foundation\Console\Kernel->bootstrap() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:105
Illuminate\Foundation\Console\Kernel->handle() at /home/vagrant/zorga/artisan:37
I've managed to fix it for now by removing the call to ->package()
from the service provider. However, when I try to run:
php artisan asset:publish delormejonathan/laravel-js-routing
It fails with:
[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "asset" namespace.
Exception trace:
() at /home/vagrant/zorga/vendor/symfony/console/Application.php:469
Symfony\Component\Console\Application->findNamespace() at /home/vagrant/zorga/vendor/symfony/console/Application.php:501
Symfony\Component\Console\Application->find() at /home/vagrant/zorga/vendor/symfony/console/Application.php:183
Symfony\Component\Console\Application->doRun() at /home/vagrant/zorga/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at /home/vagrant/zorga/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:107
Illuminate\Foundation\Console\Kernel->handle() at /home/vagrant/zorga/artisan:37
(it actually failed silently on both accounts, I had to hack around a little to get helpful stack traces)
According to the package development guide, the packages' service providers now are supposed to call ->publish()
in their boot()
method, and then the actual publishing can be done by a command:
php artisan vendor:publish --tag=public --force
I'm still a little confused how to go about this exactly, e.g., what do the ->publish()
arguments mean and thus what should they be in this case...
Would you happen to have any ideas? I'd really like to get JS routing working in this project...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.