B
B
Blud732014-01-12 11:31:54
Laravel
Blud73, 2014-01-12 11:31:54

Laravel 4: Library call -> Error?

Faced the following problem.
Such a structure:

--app
   --libraries
      --bet.php

bet.php
class Bet {
  public static function auth() {

  }
}

Next, I created a GetEvent.php file in Commands. Added its launch to Artisan. And I run php artisan command:GetEvent.
GetEvent.php
public function fire()
  {
  
    print_r(Bet::auth()); // Здесь я пытаюсь вызвать библиотеку.

    
  }

How do I achieve the library call.
Maybe something should be added to autorun?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xAockd, 2014-01-12
@xAockd

Have you tried composer dump-autoload?
he needs to fix the situation

B
Big_Shark, 2014-01-12
@Big_Shark

The code you provided here and the error text do not match, show the 45th line from the BetFairGetEvent.php file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question