Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

running laravel theme


when i ran the command php artisan serve (keeping the folder in the d drive) I got the below error so i tried pasting the same inside the hddocs to check if it is working correctly but the same error...

I installed xampp and inside the hddocs folder i extracted the package and opened the command and ran the command php artisan serve and got the errors belos

C:\xampp-7.4\htdocs\laravel-jaspen>php artisan serve
PHP Warning: require(C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18

Warning: require(C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18

PHP Fatal error: require(): Failed opening required 'C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php' (include_path='D:\xampp-php7\php\PEAR') in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18

Fatal error: require(): Failed opening required 'C:\xampp-7.4\htdocs\laravel-jaspen/vendor/autoload.php' (include_path='D:\xampp-php7\php\PEAR') in C:\xampp-7.4\htdocs\laravel-jaspen\artisan on line 18

Need guidance on running laravel


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi Vijey,

This issue seems similar to this;
https://github.com/Seldaek/monolog/issues/1597

Probably you are not using the latest PHP v8. Please try to upgrade your PHP version.

Thanks



Sure, I will update to php 8.and will get back to you...

Regards,
Vijey



Hi Vijey,

Could you please try to run composer install first?

Please check the documentation here for more info.
https://preview.keenthemes.com/metronic8/laravel/documentation/getting-started/build


Thanks



Hi Faizal..

Yes, i ran the command as said yesterday and also now .. I am getting the error as below...

81 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in D:\jaspen\laravel\vendor\psr\log\src\LoggerInterface.php on line 30
PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Log\Logger::__construct() must be an instance of Psr\Log\LoggerInterface, instance of Monolog\Logger given, called in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php on line 182 and defined in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\Logger.php:43
Stack trace:
#0 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(182): Illuminate\Log\Logger->__construct(Object(Monolog\Logger), Object(Illuminate\Events\Dispatcher))
#1 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(129): Illuminate\Log\LogManager->createEmergencyLogger()
#2 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(112): Illuminate\Log\LogManager->get('stack')
#3 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\LogManager.php(590): Illuminate\Log\LogManager->driver()
#4 D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.ph in D:\jaspen\laravel\vendor\laravel\framework\src\Illuminate\Log\Logger.php on line 43
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255

Regards,
Vijey


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(