The @inject()
directive with inject the dependency you specify into the view as a variable using the string passed in as the first argument. So in your case, an instance of App\Paytabs
would be available as the variable $paytabs
. There's no need to instantiate it yourself.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community