How to show product list When I write category name in a search bar using laravel?

I want to show product list related to category. When i write category name inside search bar product list should be shown how to do this ? please help me thanks. I want to show product list like this, please see image. https://i.stack.imgur.com/wP1CS.png This is my search bar please see https://i.stack.imgur.com/GHPOC.png Controller public function searchproduct(Request…

Details

How to call a function onClick which is defined in React Hooks useEffect()?

useEffect(() => { //Calling this function const handleClick = () => { const lazyApp = import(“firebase/app”) const lazyStore = import(“firebase/firestore”) //Some code here } }, []) //Calling the function here <MDBBtn to=”” className=”btn p-0 btn-white bg-transparent” title=”Add To Cart” onClick={handleClick} > <FontAwesomeIcon icon={faShoppingCart} style= /> </MDBBtn> I am trying to call a function after a…

Details

MySQL/NodeJS: insertId equal to 0 when using GUID

Expected behaviour: get inserted guid for using this later on client Real behaviour: getting 0 all my inserts MySQL Trigger Code CREATE DEFINER=`root`@`localhost` TRIGGER `students_before_insert` BEFORE INSERT ON `students` FOR EACH ROW BEGIN SET NEW.Student_ID = UUID(); SET NEW.Student_Number = CONCAT(LEFT(CAST(UNIX_TIMESTAMP(NOW()) AS CHAR),2),RIGHT(CAST(UNIX_TIMESTAMP(NOW()) AS CHAR),4)); SET NEW.Student_Email= CONCAT(NEW.Student_Number,’@ktu.edu.tr’); SET NEW.Student_Password = RIGHT(NEW.Student_TC,6); END NodeJS Express…

Details