Download core/app/View/Components/Captcha.php from pnacorp/codeplus: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/View/Components/Captcha.php
- Command line
-
hf download hf://pnacorp/codeplus/core/app/View/Components/Captcha.php
-
curl -L -o Captcha.php https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/View/Components/Captcha.php
613 Bytes
| namespace App\View\Components; | |
| use Illuminate\View\Component; | |
| class Captcha extends Component | |
| { | |
| /** | |
| * Create a new component instance. | |
| * | |
| * @return void | |
| */ | |
| public $path; | |
| public function __construct($path = null) | |
| { | |
| $this->path = $path; | |
| } | |
| /** | |
| * Get the view / contents that represent the component. | |
| * | |
| * @return \Illuminate\Contracts\View\View|\Closure|string | |
| */ | |
| public function render() | |
| { | |
| if ($this->path) { | |
| return view($this->path.'.captcha'); | |
| } | |
| return view('partials.captcha'); | |
| } | |
| } | |