infoMore than 3 years have passed since last update.@koonii26With スコープの外の変数使えないので使えるようにするにはLaravelLast updated at 2021-03-02Posted at 2021-03-01このように書く。 function($query) use (変数名) { } 0Go to list of users who liked0comment0Go to list of commentsRegister as a new user and use Qiita more convenientlyYou get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing upSign upLogin