Category "laravel"

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

Getting old cache view when there is PHP errors in controller - Laravel 5.6

I have a strange problem. I am using Laravel 5.6, When there is a PHP error or Laravel error (E_NOTICE, E_WARNING etc) in my controller then instead of throwing

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 Problem Call to undefined method App\Models\User::getRoleNames()

@extends('layouts.app') @section('content') <div class="row"> <div class="col-lg-12 margin-tb"> <div class="pull-left">

Auto boot MailHog on Ubuntu 20.04

I installed MailHog in my staging environment by following these steps: sudo apt-get -y install golang-go go get github.com/mailhog/MailHog In order to manually

how to fix Service provider class not found when using repository?

I am new to repository in laravel and trying to work on it , But when i run the application it throws the error Class 'App\Repositories\User\UserRepoServicePr

Laravel SPA (Vue) Authentication with cookie or token?

the more I read about Laravel Spa (Vue) authentication, the more I ask myself about the "best way" to authenticate with Sanctum. Official Laravel documentation

Why is Shippo Webhook returning 406 error?

I've had 3 developers look at this now and we cannot figure out why this test webhook on Shippo is returning a 406 error. The site is live and working fine oth

Laravel Spark installation issue - dont download spark forbidden access

I have a Laravel Spark Account with a token registred. I have install laravel spark installer but failed to create a new project. When i launch the command spar

Laravel how to modify onDelete('cascade') into no action in migration?

I have a users table which has many debitur. I already set the user_id in debitur with onDelete('cascade'). Schema::table('debitur', function ($table) { $t

Unset/Remove relation object from Laravel Eloquent collection

I've a fetch a Laravel Eloquent collection by: $product = Product::query()->with(['merchant', 'picture'])->where('id', $id)->first(); and get the du

How do I upload a laravel project on cPanel shared hosting?

I am uploading a simple subscription page for my website using cPanel. I uploaded the files to public_html, moved the files from public folder and modify index.

Use same method for inertia response and json response Laravel Jetstream

I have been using Laravel powered API and VueJS powered frontend, two separate projects for single page application. Now I want to switch to Laravel Jetstream w

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 Mix Uncaught ReferenceError: $ is not defined

I've searched and searched and I can't find the answer to my problem on SO. So here's my issue. I'm trying to load jQuery Globally using Laravel Mix. I've tried

Error with: npm run dev

@ dev /home/eduardo/blog2 npm run development @ development /home/eduardo/blog2 cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js -

Get empty result api firebase [FCM]

I've saved some of my mobile registration_codes that are connected with my development environment of Firebase. Once I send a manual notification by the api I r

could not find driver Debian SQL Server PHP

I have a Laravel installation running on a Debian 9.9 server and PHP 7.4. I need to connect to a SQL Server database on a remote Windows server. I followed th

Is there a way to manually store Kafka offset so a consumer never misses messages?

Using PHP Laravel Framework to consume kafka messages with the help of the mateusjunges/laravel-kafka laravel package. Is it possible to save the offset by cons

Does the Laravel `increment()` lock the row?

Does calling the Laravel increment() on an Eloquent model lock the row? For example: $userPoints = UsersPoints::where('user_id','=',\Auth::id())->first();