Icon $person->setIcon('users'); // Title Only $person->setArgument('supports', ['title'] ); // Set Placeholder Text $person->setTitlePlaceholder('Enter full name here');
Only save these fields protected $fillable = [ 'photo', 'post_content', 'job_title' ]; // Format photo as an integer protected $format = [ 'photo' => 'intval' ]; }
public function index() { } public function add() { } public function create() { } public function edit() { } public function update() { } public function destroy() { } }
public function handle() { $request = $this->request; $response = $this->response; // Do stuff before controller is called $this->next->handle(); // Do stuff after controller is called } }