What is the proper way to handle API redirection

Hey guys, I am working on a project that uses React for the frontend and Laravel for the API endpoints which I am responsible for. The logic is to redirect users to...
Laravel
11
113
nafeeur10 nafeeur10
3

How to prevent loading from cache?

I am downloading Bagisto solution with this command composer create-project bagisto/bagisto I tried it before. But now I want to install it fresh....
teejaybond teejaybond
2

getting this error while trying to send email to users in laravel 6

Swift_TransportException Connection could not be established with host smtp.mailtrap.io [Unable to find the socket transport "tsl" - did you forget to enable it w...
mnaufil mnaufil
3

I've been getting an exception PDO regarding my project of laravel 6

SQLSTATE[HY000] [2013] Lost connection to MySQL server at 'reading initial communication packet', system error: 0...
Kanchan186 Kanchan186
2

how to store multiple checkboxes values in same table at same time

addServiceStation.blade.php <div class="form-group"> <h5>Choose Segment<span class="te...
royo1987 royo1987
10

Update empty checkboxes

Hi, I'm using Laravel 5.7 I have a list of more than 500 checkboxes that I’m inserting into the database with the help of...
Laravel
10
99
alidhillon alidhillon
3

Storage::putFile saves file on just saving the code in my code editor without me executing the code.

namespace App\Http\Controllers; use Illuminate\Support\Facades\Storage; use Illuminate\Http\File; class WelcomeController extends Controller { public functio...
beracah.kings beracah.kings
9

419 Page Expired

I m trying to submit my form to payment gateway and payment gateway returns the user to the response page in my website. Im able to send the data to the payment gateway an...
Laravel
9
6048
engrlaravel engrlaravel
2

Laravel Cron Jobs/ Task scheduling

I am using IIS server to run laravel website. How i can create task scheduling on windows IIS server? On linux server it is asking to run this commond, but how to do...
Van1310 Van1310
7

Class 'ZipArchive' not found

i try to file export but zipArchive error here is my controller code public function export() { return Excel::download(new libraryExport, 'li...
Virtualmix Virtualmix
5

What's wrong with my Middleware?

I use this middleware to set my user's preferred currency. It works fine on my local machine but I just found out it creates issues with the session on my production server...
Laravel
5
149
SupunSam SupunSam
9

Laravel Excel Export Warning

Hi All, I have started to use Laravel Excel in my web app and it all works fine. I get the excel except following warning in my browser console: Reso...
mawusi mawusi
3

PostTooLargeException

I already configured php.ini file (post_max_size=10240M), but it's still throwing PostTooLargeException. Please, what do I do. I am a beginner. Thanks in advance...
christonit christonit
7

Error 404 when trying to connect to Laravel Passport API through VUE.JS

Greetings, I have a little personal project I 've been working on that was built on top Laravel, it occured to me to migrate its front end to mainly Vue Js and decid...
KingsleyO KingsleyO
8

Using relationship column in a query

I have my category list coming from this relationship public $belongsToMany = [ 'catbuy' => [ 'Corymillz\Adverts\Models\Cat', 'tab...
Laravel
8
124
bajwa_rajat bajwa_rajat
11

Handle Guzzle async post requests

I am using Guzzle 6 to update products to shopify via API. I am using async post method to update products in bulk, but in response if any error occur in any posted request...
Laravel
11
94
engrlaravel engrlaravel
1

Redis vs Memcached in laravel

I want to implement cache in laravel. Which one should i pick? Redis or Memcached? I know this is very common question, but still it is not clear. I read comp...
mawusi mawusi
3

PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `exams`.`#sql-e54_ee` (errno: 150 "Foreign key constraint is incorrectly formed")")

Please can any on help me resolve this?. I am trying to build a table using Laravel's Schema Builder like this: for Sermon: Schema::create('sermons', function...

Approach for a multi step form

I have a multi step form using bootstrap and jQuery. The multi step form is for a user to buy a product. There are 4 steps: - Step 1 is for the user insert his info (name,...
Laravel
5
644
krie9er krie9er
6

Configure Oracle database in Laravel

Hey i'm not sure if im right in the forum, but i have a short Question i want to use the oci-pdo driver, so could i just extend the config/database.php?...
Laravel
6
1268
tntman tntman
0

Laravel sockets - need advice

I need some tips and suggestions what package to use to build my laravel app.I will write some app requests that this socket package need to handle.1. It have to be TCP pro...
chack1172 chack1172
9

Relation with class name

Hello, I'm new here :) I have a model that has a relation with another model by its class name. For example I have a model called Post and in the other...
connecteev connecteev
2

Getting Username (Nickname) for Google / Linkedin using Socialite

I'm using the latest version of Laravel Socialite to log a user into: Github...
Griehle Griehle
7

Sync does not copy all

I am trying to duplicate a already existing ... thing. It copies everything into the database using sync() except ONE value which is ONE column in a database. Type. The pro...
t0berius t0berius
5

mass update values / exclude CSRF post field

Inside my application I'm using a simple value store (inside database), for some application settings. To update all values I would like to use: SystemConfig...
Lalit Lalit
12

Update Check box

How to update checkbox in controller...
Laravel
12
307
yassineqoraiche yassineqoraiche
0

Deploy Laravel application to heroku

Hello everyone, I've successfully deployed a laravel application to heroku, but the problem is i can't publish a package inside it, for example i want to publis tele...
Zakaria-Acharki Zakaria-Acharki
7

Laravel migration array type

I want to store an array of integers in my table and i cant find any type that support array in Documentation, any suggestion. public function up() { Sch...
Laravel
7
256
IamCrazyD IamCrazyD
3

Calculation of values from different database tables in laravel

I have 4 tables with timestamps of laravel: orders - order_code, user_id, invoicer_id, moderator_id, affiliate_id, payable_amount, product_id order_invoicer_shipping...
yassineqoraiche yassineqoraiche
2

AppServiceProvider vs custom provider

What is the difference between make a custom service provider or simply register it in the AppServiceProvider register method? please be descriptive in your answer....
joaorbrandao joaorbrandao
7

Register package's Facade in package ServiceProvider

Hi! I have a package's Facade that only works on a project after adding it to the app.php aliases list. What am I missing on the package' service provider? I want th...
ssquare ssquare
0

Connection Time Out For Smtp checks

I am trying to check if the entered SMTP details are correct or not. So, I run the following code: use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMail...
muhammadjaved muhammadjaved
4

Images are being storing as .tmp ?

Hello, I want to upload multiple images but the problem is its being stroing as .tmp file. here is my code. if($files=$request-&g...
beracah.kings beracah.kings
3

deploying in shared server

im trying to deploy my laravel app on shared server , i put the files under public into public_html and rest of the files in a folder named as websitefolder. In the...
mstdmstd mstdmstd
0

How to check if user is subscribed to some stripe's plan

Hello, In my Laravel 5.8 I search how to check if used is subscribed to some stripe's plan. I make subscription with stripe and I have installed &quo...
Create a New Discussion Button