Skip to content
Advertisement

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: …

Middleware auth keep logging me out? Edit: RedirectIfAuthenticated logging me out?

Fairly new to Laravel and tried to make a Login page. Edit 2: Tried to use Guard and when I’m redirected to RedirectIfAuthenticated it seems somehow the auth()->check() or Auth::check() return false at handle function here’s my RedirectIfAuthenticated.php The Auth was able to store the user, but it keeps logging me out when I’m going to HomeController where it had

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" …

Advertisement