Access Level to certain class must be public error in PHP

前端 未结 5 1580
猫巷女王i
猫巷女王i 2021-01-17 18:21

I created this class



        
5条回答
  •  余生分开走
    2021-01-17 19:01

    It also happens when you are trying to do something with specific guard. You can add

     protected $guard = "guard_name";
    

    Add above line in your model. that will solve the problem.

提交回复
热议问题