标签:static-functions
-
在laravel 5中的静态函数中调用非静态函数 - php
我正在使用laravel5。在模型中,我有一个静态函数,该函数在控制器中调用。它工作正常,但是我想在此函数中使用另一个非静态函数进行相同的更改,当我在静态函数中调用它时会产生错误。 Non-static method App\Models\Course::_check_existing_course() should not be called static […]
我正在使用laravel5。在模型中,我有一个静态函数,该函数在控制器中调用。它工作正常,但是我想在此函数中使用另一个非静态函数进行相同的更改,当我在静态函数中调用它时会产生错误。 Non-static method App\Models\Course::_check_existing_course() should not be called static […]