Skip to content

How to inject a specific cache pool?

In my Symfony 5 application I want to use different caches for different tasks and of course for different environments. e.g. my configuration looks like this: framework: cache: pools: …

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

Laravel: withCount auth()->user() relationship

I my laravel (7.x) application. I have to models User and UserReferral with hasMany relationships. User.php class User extends Authenticate implements MustVerifyEmail { public function referrals() …

Display data from database using and tags

The main goal I try to get is, the correct display data from the database, let me try to explain with the code. This is my form code for now: <form action="" id="omnivaform" …