Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

webfuelcode's avatar

I just tried terminal on shared hosting server

This is what I see by using php artisan and php artisan list

I have checked the composer, it is installed

syntax error, unexpected token "::", expecting "("

  at app/Console/Commands/everyDay.php:141
    137|
    138|         $data = $matches['data'];
    139|         foreach ($data as $post) {
    140|             $post = (array)$post;
  > 141|             Match::updateOrCreate(
    142|                 ['mid' => $post['id']],
    143|
    144|                 [
    145|                     'mid' => $post['id'],

      +1 vendor frames
  2   [internal]:0
      Composer\Autoload\ClassLoader::loadClass()

      +1 vendor frames
  4   app/Console/Kernel.php:37
      Illuminate\Foundation\Console\Kernel::load()
0 likes
2 replies

Please or to participate in this conversation.