Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on my Macbook #11

Open
PovilasKorop opened this issue Dec 12, 2022 · 1 comment
Open

Doesn't work on my Macbook #11

PovilasKorop opened this issue Dec 12, 2022 · 1 comment

Comments

@PovilasKorop
Copy link

Wanted to make a quick review, but installation doesn't work, probably because of forward-back-slashes:

povilaskorop@Povilass-MacBook-Pro project3 % php artisan apiautopilot:install

   ErrorException 

  file_get_contents(/Users/povilaskorop/Sites/project3/app/Http\Kernel.php): Failed to open stream: No such file or directory

  at vendor/apiautopilot/apiautopilot/src/Commands/InstallationCommand.php:32
     28▕     }
     29▕ 
     30▕     protected function installMiddlewareToKernel(): static
     31▕     {
  ➜  32▕         $kernelContent = file_get_contents(app_path('Http\Kernel.php'));
     33▕         if (! Str::contains($kernelContent, "'modelSearch' =>")) {
     34▕             $this->replaceInFile(self::ROUTE_MIDDLEWARE_ARRAY,
     35▕                 self::ROUTE_MIDDLEWARE_ARRAY.PHP_EOL.
     36▕                 '        //The ModelSearch Middleware is Part of the ApiAutoPilot Package. Deleting it from the array will result in non-working endpoints'.PHP_EOL.
@GeorgeFourkas
Copy link
Owner

you are right. the issue is caused by the forward back-slash. i am going to update the codebase to work in mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants