larapack / voyager-hooks Goto Github PK
View Code? Open in Web Editor NEWHooks system integrated into Voyager.
License: MIT License
Hooks system integrated into Voyager.
License: MIT License
Hi, I can modify an existing hook locally.
Thank you!!!
When clicking Add Hook
it should show the most popular hooks, and it should be able to search for hooks.
Requires that larapack/hooks#3 is done first.
Laravel 5.6.33
Voyager 1.1.9 (latest)
PHP 7.1.16
MySQL 5.7.21
After installation the menu-item isn't visible in Admin menu. When I go in the Menu Builder, the menu-item is visible. When I click on it, in 'Route for the menu item' the URL is voyager.hooks. When I add index to it, the menu-item is visible in Admin menu, but on clicking nothing happens.
I've installed after that voyager-polls, but this makes no difference.
Following the change in https://laravel.com/docs/5.5/packages#package-discovery the VoyagerHooksServiceProvider
included runs at the App intialisation, which means that by default xdebug will get disabled, and trying to run any functionality dependant on it (in my case - phpunit to obtain code coverage) will fail just because larapack/voyager-hooks
is installed.
I've created a SO question for this issue: https://stackoverflow.com/questions/48118973/different-php-ini-file-loaded-dependant-upon-the-code-content/ as well as reported this on Laravel bugtracker: laravel/framework#22782
larapack\voyager-hooks
phpunit tests/unit/atest
for tests/unit/ATest.php
with following content:<?php
use Tests\TestCase;
class A extends TestCase
{
public function testA()
{
echo( get_cfg_var('cfg_file_path')); exit;
}
}
Output: C:\Users[user]\AppData\Local\Temp\F2A5.tmp
Expected output: C:\server\php\php.ini
After enable the "browse_hooks" permission, I can see the "hooks" menu, however, I cannot create any hook.
InvalidArgumentException
Could not find package test_hook. Did you mean one of these? yipl/hookah pxn/hooktest appventus/hooks dam1r89/test-hooks thecrypticace/hooks
Hooks menu item is not being displayed because permission is missing.
(edit)
I've found out that menu item is being added on Voyager repo. We should be adding Menu + Permission from the same repo.
Ping @marktopper.
Add permission browse_hooks
on Voyager and assign it to any existing admin on the system.
I would love to collaborate by creating and publishing hooks. I wonder if the documentation on how to create hooks is already in place.
After uninstall hook tables still in database. For example voyager-polls
Themes and redirect hooks give the same error:
Route [voyager.theme.index] not defined.
Try and access admin after logging in and the system gives a 500 error message.
NOTE:
Hooks Version: ^1.0
Voyager Version: 1.1
Laravel Version: 5.7.24
PHP Version: >=7.1.3
I have another project on the same local system running earlier versions of voyager and the two hook packages that work with Laravel 5.7.24.
UPDATE:
I updated the working project from Voyager 1.1 to 1.1.10 and this issue appeared.
Hello, can you please add some documentation about actions while the instaltion of a hook in runing?
And some more about the execution of custom scripts into the hook meanwhile the instalation and unintallation. (Similar of the composer script post-install
)
Thank you so much!
Cheers!
I can't create hooks. always the same error with many hooks
require.model-log is invalid, it should have a vendor name,
Hooks are removed from voyager 1.5.*. How can we use them now?
I understand the workflow of uploading and installing a hook. However, there is a genuine case where you may be developing a hook that is specific to your application and will not be of any use if you open it to the public(post on larapack). Other than use, there could also be licensing, confidentiality issues etc.
In such a case, is there a way to install a hook locally? So far, I have been able to setup composer and install the hook package locally but have hit a dead-end regarding the local hook install in Voyager.
Hi,
after command
$ php artisan hook:install voyager-themes
I got a message
[JsonSchema\Exception\ResourceNotFoundException] file_get_contents(file://): failed to open stream: No such file or directory
Could You explain me, how to use Hooks?
After a clean install of laravel and larapack/voyager-hooks:v1.0.4, the command php artisan tinker
does not show the prompt ">>>" and works incorrectly. Autocompletion doesn't work, arrow keys throws escape characters.
It seems like voyager-hooks is interfering with tinker or Psy Shell.
laravel new test
php artisan tinker
. You will see the prompt ">>>"composer require larapack/voyager-hooks:v1.0.4
php artisan tinker
. You will see Psy Shell's welcome message and NOT the prompt ">>>"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.