Closed Niyiojeyinka closed 7 months ago
A fix for
[2024-02-05 10:14:01] local.ERROR: file_put_contents(/home/olaniyi/Documents/Workspaces/projectname-backend-v2/database/migrations/2024_02_05_101357_create_activities_table.php): Failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): file_put_contents(/home/olaniyi/Documents/Workspaces/projectname-backend-v2/database/migrations/2024_02_05_101357_create_activities_table.php): Failed to open stream: No such file or directory at /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190) [stacktrace] #0 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError() #1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}() #2 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(190): file_put_contents() #3 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\\Filesystem\\Filesystem->put() #4 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/Migration/Writer/MigrationWriter.php(55): Illuminate\\Support\\Facades\\Facade::__callStatic() #5 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/Migration/TableMigration.php(96): KitLoong\\MigrationsGenerator\\Migration\\Writer\\MigrationWriter->writeTo() #6 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php(502): KitLoong\\MigrationsGenerator\\Migration\\TableMigration->write() #7 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(235): KitLoong\\MigrationsGenerator\\MigrateGenerateCommand->KitLoong\\MigrationsGenerator\\{closure}() #8 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php(501): Illuminate\\Support\\Collection->each() #9 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php(437): KitLoong\\MigrationsGenerator\\MigrateGenerateCommand->generateTables() #10 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php(423): KitLoong\\MigrationsGenerator\\MigrateGenerateCommand->generateMigrations() #11 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php(158): KitLoong\\MigrationsGenerator\\MigrateGenerateCommand->generate() #12 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): KitLoong\\MigrationsGenerator\\MigrateGenerateCommand->handle() #13 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}() #14 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure() #15 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod() #16 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Container/Container.php(661): Illuminate\\Container\\BoundMethod::call() #17 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\\Container\\Container->call() #18 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/symfony/console/Command/Command.php(326): Illuminate\\Console\\Command->execute() #19 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Console/Command.php(152): Symfony\\Component\\Console\\Command\\Command->run() #20 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/symfony/console/Application.php(1078): Illuminate\\Console\\Command->run() #21 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand() #22 /home/olaniyi/Documents/Workspaces/projectname-backendv2/vendor/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun() #23 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run() #24 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\\Console\\Application->run() #25 /home/olaniyi/Documents/Workspaces/projectname-backend-v2/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle() #26 {main} "} ErrorException file_put_contents(/home/olaniyi/Documents/Workspaces/projectname-backend-v2/database/migrations/2024_02_05_101357_create_activities_table.php): Failed to open stream: No such file or directory at vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:190 186▕ * @return int|bool 187▕ */ 188▕ public function put($path, $contents, $lock = false) 189▕ { ➜ 190▕ return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); 191▕ } 192▕ 193▕ /** 194▕ * Write the contents of a file, replacing it atomically if it already exists. +23 vendor frames 24 artisan:35 Illuminate\Foundation\Console\Kernel::handle()
Thank you for the PR, please fix the style check.
Suggestions applied, thanks
A fix for