├── .gitattributes ├── .gitignore ├── .php_cs ├── .travis.yml ├── ISSUE_TEMPLATE ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml ├── publishable └── config │ └── hooks.php ├── resources └── logo.png ├── src ├── Commands │ ├── CheckCommand.php │ ├── DisableCommand.php │ ├── EnableCommand.php │ ├── InfoCommand.php │ ├── InstallCommand.php │ ├── ListCommand.php │ ├── MakeCommand.php │ ├── SetupCommand.php │ ├── UninstallCommand.php │ └── UpdateCommand.php ├── Composer.php ├── Events │ ├── DisabledHook.php │ ├── DisablingHook.php │ ├── EnabledHook.php │ ├── EnablingHook.php │ ├── InstalledHook.php │ ├── InstallingHook.php │ ├── MadeHook.php │ ├── MakingHook.php │ ├── Setup.php │ ├── UninstalledHook.php │ ├── UninstallingHook.php │ ├── UpdatedHook.php │ ├── UpdatesAvailableForHook.php │ └── UpdatingHook.php ├── Exceptions │ ├── HookAlreadyEnabledException.php │ ├── HookAlreadyExistsException.php │ ├── HookAlreadyInstalledException.php │ ├── HookException.php │ ├── HookNotEnabledException.php │ ├── HookNotFoundException.php │ └── HookNotInstalledException.php ├── Hook.php ├── Hooks.php ├── HooksFacade.php ├── HooksServiceProvider.php └── Migrator.php ├── stub ├── composer.json ├── resources │ ├── assets │ │ └── scripts │ │ │ └── alert.js │ └── database │ │ ├── migrations │ │ ├── .gitkeep │ │ └── MIGRATION_DATE_TIME_create_snake_case_table.php │ │ ├── seeders │ │ ├── .gitkeep │ │ └── StudlyCaseTableSeeder.php │ │ └── unseeders │ │ ├── .gitkeep │ │ └── StudlyCaseTableUnseeder.php └── src │ ├── StudlyCase.php │ ├── StudlyCaseFacade.php │ └── StudlyCaseServiceProvider.php └── tests ├── HooksTest.php ├── TestCase.php ├── bootstrap.php └── fixtures ├── composer.json ├── resources ├── assets │ └── scripts │ │ └── alert.js └── database │ ├── migrations │ ├── .gitkeep │ └── 2018_01_20_120000_create_local_test_hook_table.php │ ├── seeders │ ├── .gitkeep │ └── LocalTestHookTableSeeder.php │ └── unseeders │ ├── .gitkeep │ └── LocalTestHookTableUnseeder.php └── src ├── LocalTestHook.php ├── LocalTestHookFacade.php └── LocalTestHookServiceProvider.php /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | build/ 3 | composer.lock -------------------------------------------------------------------------------- /.php_cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/.php_cs -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/.travis.yml -------------------------------------------------------------------------------- /ISSUE_TEMPLATE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/ISSUE_TEMPLATE -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/phpunit.xml -------------------------------------------------------------------------------- /publishable/config/hooks.php: -------------------------------------------------------------------------------- 1 | env('HOOKS_ENABLED', true), 6 | 7 | ]; 8 | -------------------------------------------------------------------------------- /resources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/resources/logo.png -------------------------------------------------------------------------------- /src/Commands/CheckCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/CheckCommand.php -------------------------------------------------------------------------------- /src/Commands/DisableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/DisableCommand.php -------------------------------------------------------------------------------- /src/Commands/EnableCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/EnableCommand.php -------------------------------------------------------------------------------- /src/Commands/InfoCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/InfoCommand.php -------------------------------------------------------------------------------- /src/Commands/InstallCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/InstallCommand.php -------------------------------------------------------------------------------- /src/Commands/ListCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/ListCommand.php -------------------------------------------------------------------------------- /src/Commands/MakeCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/MakeCommand.php -------------------------------------------------------------------------------- /src/Commands/SetupCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/SetupCommand.php -------------------------------------------------------------------------------- /src/Commands/UninstallCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/UninstallCommand.php -------------------------------------------------------------------------------- /src/Commands/UpdateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Commands/UpdateCommand.php -------------------------------------------------------------------------------- /src/Composer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Composer.php -------------------------------------------------------------------------------- /src/Events/DisabledHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/DisabledHook.php -------------------------------------------------------------------------------- /src/Events/DisablingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/DisablingHook.php -------------------------------------------------------------------------------- /src/Events/EnabledHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/EnabledHook.php -------------------------------------------------------------------------------- /src/Events/EnablingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/EnablingHook.php -------------------------------------------------------------------------------- /src/Events/InstalledHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/InstalledHook.php -------------------------------------------------------------------------------- /src/Events/InstallingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/InstallingHook.php -------------------------------------------------------------------------------- /src/Events/MadeHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/MadeHook.php -------------------------------------------------------------------------------- /src/Events/MakingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/MakingHook.php -------------------------------------------------------------------------------- /src/Events/Setup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/Setup.php -------------------------------------------------------------------------------- /src/Events/UninstalledHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/UninstalledHook.php -------------------------------------------------------------------------------- /src/Events/UninstallingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/UninstallingHook.php -------------------------------------------------------------------------------- /src/Events/UpdatedHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/UpdatedHook.php -------------------------------------------------------------------------------- /src/Events/UpdatesAvailableForHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/UpdatesAvailableForHook.php -------------------------------------------------------------------------------- /src/Events/UpdatingHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Events/UpdatingHook.php -------------------------------------------------------------------------------- /src/Exceptions/HookAlreadyEnabledException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookAlreadyEnabledException.php -------------------------------------------------------------------------------- /src/Exceptions/HookAlreadyExistsException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookAlreadyExistsException.php -------------------------------------------------------------------------------- /src/Exceptions/HookAlreadyInstalledException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookAlreadyInstalledException.php -------------------------------------------------------------------------------- /src/Exceptions/HookException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookException.php -------------------------------------------------------------------------------- /src/Exceptions/HookNotEnabledException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookNotEnabledException.php -------------------------------------------------------------------------------- /src/Exceptions/HookNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookNotFoundException.php -------------------------------------------------------------------------------- /src/Exceptions/HookNotInstalledException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Exceptions/HookNotInstalledException.php -------------------------------------------------------------------------------- /src/Hook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Hook.php -------------------------------------------------------------------------------- /src/Hooks.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Hooks.php -------------------------------------------------------------------------------- /src/HooksFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/HooksFacade.php -------------------------------------------------------------------------------- /src/HooksServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/HooksServiceProvider.php -------------------------------------------------------------------------------- /src/Migrator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/src/Migrator.php -------------------------------------------------------------------------------- /stub/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/composer.json -------------------------------------------------------------------------------- /stub/resources/assets/scripts/alert.js: -------------------------------------------------------------------------------- 1 | alert('This is a sample file!'); 2 | -------------------------------------------------------------------------------- /stub/resources/database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stub/resources/database/migrations/MIGRATION_DATE_TIME_create_snake_case_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/resources/database/migrations/MIGRATION_DATE_TIME_create_snake_case_table.php -------------------------------------------------------------------------------- /stub/resources/database/seeders/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stub/resources/database/seeders/StudlyCaseTableSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/resources/database/seeders/StudlyCaseTableSeeder.php -------------------------------------------------------------------------------- /stub/resources/database/unseeders/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /stub/resources/database/unseeders/StudlyCaseTableUnseeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/resources/database/unseeders/StudlyCaseTableUnseeder.php -------------------------------------------------------------------------------- /stub/src/StudlyCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/src/StudlyCase.php -------------------------------------------------------------------------------- /stub/src/StudlyCaseFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/src/StudlyCaseFacade.php -------------------------------------------------------------------------------- /stub/src/StudlyCaseServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/stub/src/StudlyCaseServiceProvider.php -------------------------------------------------------------------------------- /tests/HooksTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/HooksTest.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tests/fixtures/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/composer.json -------------------------------------------------------------------------------- /tests/fixtures/resources/assets/scripts/alert.js: -------------------------------------------------------------------------------- 1 | alert('This is a sample file!'); 2 | -------------------------------------------------------------------------------- /tests/fixtures/resources/database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/resources/database/migrations/2018_01_20_120000_create_local_test_hook_table.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/resources/database/migrations/2018_01_20_120000_create_local_test_hook_table.php -------------------------------------------------------------------------------- /tests/fixtures/resources/database/seeders/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/resources/database/seeders/LocalTestHookTableSeeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/resources/database/seeders/LocalTestHookTableSeeder.php -------------------------------------------------------------------------------- /tests/fixtures/resources/database/unseeders/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/fixtures/resources/database/unseeders/LocalTestHookTableUnseeder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/resources/database/unseeders/LocalTestHookTableUnseeder.php -------------------------------------------------------------------------------- /tests/fixtures/src/LocalTestHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/src/LocalTestHook.php -------------------------------------------------------------------------------- /tests/fixtures/src/LocalTestHookFacade.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/src/LocalTestHookFacade.php -------------------------------------------------------------------------------- /tests/fixtures/src/LocalTestHookServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/larapack/hooks/HEAD/tests/fixtures/src/LocalTestHookServiceProvider.php --------------------------------------------------------------------------------