for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pratiksh\Adminetic\View\Components;
use Illuminate\Support\Str;
use Illuminate\View\Component;
class EditAddButton extends Component
{
public $model;
public $name;
public $confirm;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($model, $name, $confirm = false)
$this->model = $model;
$this->name = Str::ucfirst($name);
$this->confirm = $confirm;
}
* Get the view / contents that represent the component.
* @return \Illuminate\Contracts\View\View|\Closure|string
public function render()
return view('adminetic::components.edit-add-button');