Category "laravel-5"

Sendgrid 550 unauthenticated senders not allowed laravel swiftmailer

When I'm using SendGrid to send email in Laravel, it results in the following error: "550 unauthenticated senders not allowed" I couldn't find out why thi

Stripe exception is not working .giving laravel errors instead of exception errors

I am using stripe payment gateway in my project. I am trying to display exception errors when a user entered expired card number. but instead of showing me erro

Required field only if another field has a value, must be empty otherwise

My question is about Laravel validation rules. I have two inputs a and b. a is a select input with three possible values: x, y and z. I want to write this rule

set mail driver dynamically from database for different email in notification

I want to set the following setting dynamically before I notify the user. MAIL_DRIVER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_SENDER_EMAIL= M

How to disable only_full_group_by option in Laravel

I am new to laravel and I am having an issue with DB problem. I have disabled 'only_full_group_by' sql_mode by editing /etc/mysql/my.cnf file. And I checked sq

ERROR!!! Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table

I ran into an error and I have not figured out how to resolve it alone. so I opted to get help from this community. I will explain a bit though the screenshots

Is this Mysql Bug? About SELECT ... FOR UPDATE lock_mode X insert intention

have a table struct is id, aid, ...... the aid is an index(a type of int) trx1 and 2: begin; trx1: select max(id) from a where aid = 10 for update; trx2: sele

Laravel update hasMany relationship using saveMany

As the title suggests, i'm trying to update a hasMany() relationship. I have a Contacts and a ContactsProperties model in my application. Contacts can have man

Can't load popper.js with webpack and Laravel mix

I'm using bootstrap 4 beta and Laravel 5.4 on my project and loading my js dependencies with npm and laravel mix. So far everything has been working great, exce

How can I get new CSRF token in LARAVEL by using ajax

I have created a form which is having a lot of fields and user can create an unlimited field in it. If a user spends more time on it CSRF token get expires and

Laravel $request->expectsJson()

I am doing an Ajax login for my Laravel application. I am using Angular: $http({ method: 'POST', url: '/admin/login', headers: { 'Content-Type': '

OctoberCMS How to Preview

I have a controller that implements Backend\Behaviors\FormController and Backend\Behaviors\ListController. I'm able to update or delete selected records from th

Laravel: All RCPT commands were rejected with this error: 503-relay not permitted, authentication required

I've made a website with Laravel which uses email to notify users of certain things. For testing on my personal computer, I used my gmail account for sending em

Is there a way to use the same parameter into multiple place in the same query with Eloquent? [duplicate]

I am working on a Laravel 5.7 based project in which Eloquent is used as an ORM. I need to execute a raw SQL statement on my database. Howev

Laravel - accessing .env variables

I tried to get the environment variable from the .env in my root with Route::get('/test', function () { return "value is". getenv('APP_ENV'); }); and Ro

Laravel page shows "This page isn’t working" instead of errors

My laravel project is standing on xampp on windows. Whenever I make a critical error (a typo for example) i should get an error, but instead I'm seeing "This pa

Cache clear probem in Larave

I have a problem. I am download project from hosting. now when I run the project this error shows. pic attached. I think this is cache problem, I clear cache, v

find in set in laravel ? example

I am new in laravel. My query is i need to find out value from comma separated field. Here is my table: tags_value id tags 1 css,html,php 2 php,java,css 3 java

Lumen - Postgresql setup - Composer

really strugling on this one, it's not the first I try to set this up but I really can't see why it's not working. So this is my app.docker file: FROM php:7-f

Lumen - Postgresql setup - Composer

really strugling on this one, it's not the first I try to set this up but I really can't see why it's not working. So this is my app.docker file: FROM php:7-f