Download app/View/Composers/PlanComposer.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 337 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/View/Composers/PlanComposer.php
- Command line
-
hf download hf://pnacorp/magicai/app/View/Composers/PlanComposer.php
-
curl -L -o PlanComposer.php https://huggingface.co/pnacorp/magicai/resolve/main/app/View/Composers/PlanComposer.php
337 Bytes
| namespace App\View\Composers; | |
| use App\Helpers\Classes\PlanHelper; | |
| use Illuminate\View\View; | |
| class PlanComposer | |
| { | |
| /** | |
| * Bind data to the view. | |
| */ | |
| public function compose(View $view): void | |
| { | |
| $plan = PlanHelper::userPlan(); | |
| $view->with([ | |
| 'userPlan' => $plan, | |
| ]); | |
| } | |
| } | |