Skip to content

Tag: laravel-8

how to limiting word on the laravel blade?

I’m looking to find out how to limit word in laravel blade. I’ve coded using substr, but it’s still not working properly. Can anyone help me? Answer The Str::words method limits the number of words in a string. An additional string may be passed to this method via its third argument to speci…

Laravel 8: How to insert unique data from the DB

I need to insert some unique content into the DB using Laravel 8. Here is my code: As you can see the field numbers should stored unique numbers but I have some duplicated Hex values and I don’t want to store them at the DB. So how can I insert UNIQUE values into the DB. Note that I have already

I have a problem with my laravel query builder

I’m using laravel as my web project, and I have an issue when I update my database. I have an error message on my postman after posting data. Here is the message. This is my function code to update a row on a database. I don’t know what’s going on with my code, i search for ‘transact_i…