I am trying to separate user & admin functionality but can’t find a satisfactory solution. After login, the user is authenticated and then he is redirected to either user or admin blade view …
Tag: laravel
Hosted fields in braintree gives error “Cannot determine payment method” PHP Laravel
Can anyone please explain me how could i make a working Braintree payment with hosted fields, in Laravel. I tried to look at the documentation myself but i couldn’t make it working. i created the token in the controller to be sent to the view like: On the blade view i have this JS: }); Here is the metho…
Laravel Form displaying correct data but storing incorrect values in DB
I have come across a bug on my website and I am baffled as to how to fix it.. basically I have a view to create courses, I type a course title and secondly assign an instructor to that course and …
values are not inserting in profile table
use AppUserProfile; use AppPost; class User extends Authenticatable { use Notifiable; // protected $table = ‘user’; protected $primaryKey = ‘username’; protected $keyType = ‘…
Unable to search with laravel-scout-tntsearch-driver
I just installed this package (laravel-scout-tntsearch-driver) and when using the search() method, I am getting the following error: PDOException with message ‘SQLSTATE[HY000] [2002] Connection …
why am i receiving a error when installing argon on a fresh laravel install?
I am trying to install the Argon template for laravel on a fresh install, apart from filling in the .env with the database information which works i haven’t done anything to this install of laravel, …
Why does using vsprintf instead of sprintf to format a query string to pass to Laravel’s DB::select cause the return of a non-object?
I am having trouble when using vsprintf instead of sprintf to format a query string I pass to DB::select. I have narrowed the problem down through elimination. At first I attempted to use sprintf to …
DB Query inside a foreach loop is making my application slow
The code bellow is used to show a table with 15 results in a page. For this, i’m using two different databases, one is a wordpress database, the other is a personal database i created. The first …
Why class Imagick not found in laravel 7.0?
I had install Imagick: Result of phpinfo: I try test in controller: It occur error: Why class Imagick not found in laravel 7.0? Answer Class ‘AppHttpControllersImagick’ not found means that Imagick is not in the namespace AppHttpControllers. If you want to use Imagick you need to prepend it with t…
Database connection [users] not configured
I’m getting InvalidArgumentException Database connection [users] not configured. http://127.0.0.1:8000/register error, when submitting register form, using Laravel Auth. My Laravel version is 6.17.1 .env file Auth/RegisterController.php file app/User.php file users table migration file config/database.p…