mardi 3 janvier 2023

How to use X-component in laravel controller side

index.blade.php

<x-textbox divClass="col-sm-4" name="datbase_ffieldname" :model="$model" readonly>                                 
    </x-textbox>
  • This file is working done but same code not working in controller side

studentController.php

$textbox = <x-textbox divClass="col-sm-4" name="datbase_ffieldname" :model="$model" readonly>                                 
    </x-textbox>;

print_r($textbox);

not get the textbox data



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire