Fetching Data - Best Practice (Laravel/Vuex)

I've just implemented rue-router and vuex into an App I'm working on. I thought everything was going along quite nicely until I implemented a loader (spinner) and discovere...
ajithlal ajithlal
2

corcel not working on server

I'm using jgrossi's corcel package to integrate my WordPress site to laravel. It works fine on my system and it returning 500...
TzuSun67 TzuSun67
2

Defining a comments field to a specific user

Hi All, I know this may be a very easy thing to achieve but I have been struggling to to assign edit functions to comments that users have created. I.e. if th...
LaravelFan2019 LaravelFan2019
1

Permission Denied after refactor.. Help!

First of all setup is thus: New Laravel App with Auth. Editor: PHP Storm 2019.3 Web Server Software: Laragon I have installed many laravel apps but this is a...

File storage in local and public storage at the same time.

In my project i have two kind of files first one is user avatar, and the next one is user uploaded files. (image,pdf). As you can imagine, first one should be publicly avai...
mrkarma4ya mrkarma4ya
2

AJAX for Laravel

I'm planning to learn Vue JS, but I thought it'd be better if I learnt some basics first, like AJAX, jQuery, etc. What's the best way to learn AJAX for Laravel? The...
zyxxyzyxz zyxxyzyxz
0

Laravel/InertiaJS Checkout help?

I'm making a storefront with InertiaJS and Laravel. In previous projects where I've used Vue CLI 3, I've generally just had a multiple step checkout with the data stored in...
theUnforgiven theUnforgiven
3

Editable table but save all values

Just hit a roadblock, I have a table quite a big table too, and most cells are editable, but I want to click a submit button and save all the values in the all the cells....
tomasosho tomasosho
11

How to integrate stripe & Cashier Subscription payment system on laravel 6

I'm getting that error when i post a payment from my app. I'm using stripe payment system and cashier. My controller <?php namespace App\Http\Contr...

Cashier Error: Stripe\PaymentMethod instance has invalid ID:

I'm trying to use Laravel Cashier, but getting 'Stripe\Exception\UnexpectedValueException Could not determine which URL to request: Stripe\PaymentMethod instance has invali...
Tommy001 Tommy001
3

Unisharp Laravel Filemanager can't be found after version upgrade

I wanted to upgrade Laravel Filemanager by Unisharp to the latest version, so I changed that row in my composer.json to "unisharp/laravel-filemanager": &quo...
matthewh matthewh
6

Weird 'Function name must be a string' with auth:api

Passport is installed. CreateFreshApiToken is on the web middleware auth.php API driver is changed to passport All passport routes are ther...
Mithridates Mithridates
18

Can't change app default language

After a lot of struggling I coudln't change app's default language. What I have done: change locale attribute in config/app.php to: 'locale' => 'ar',...
Assistance
18
1040
marmour marmour
1

Queue set by config - Constant expression contains invalid operations

I am trying to set the name of a queue based on a config value. Here is the basics of what one of my listerns looks like: class SomeList...
rfountain rfountain
3

process.env.MIX_<variable> not working

I'm currently working on a project using Laravel Spark and Laravel Echo to send WebSocket notifications. The problem I'm having is the variables for process.env.MIX_PUSHER...

Laravel - Using Gates on API requests for authorization

I have a laravel app setup perfectly with roles and permissions using gates. For example, in the web routes file I have this which works great: WEB.PHP...

api_token working - but how to authorize access to API's by roles/permissions?

Hello. I'm struggling to get this basic concept off the ground, and have actually found little to no literature on the internet on how to do this. I want to restrict access...
waiyan13 waiyan13
6

Combine data from multiple models

I have to show data from multiple controllers in a single view file. How should it be done properly?...
Bacchus Bacchus
3

Laravel Automagic for Beginners?

Hello, I'm pretty novice and have built some makeshift frameworks before for e-commerce projects, but have never used a mature framework like Laravel outside of expl...
camillele camillele
1

Get hour-wise data for today sales report generation

Hi, I want to get hourly-wise data for today sales data for chartjs. Do I need to create a separate table to store with hours to get all the hourly data? what is the struct...
Devedge Devedge
2

Laravel 6 - security consideration when building 'Formidable Pro' style form builder

I've been working on a front-end page builder which has come together quite nicely and now I'm looking at building something similar to Formidable Pro for Wordpress, where...
bmartus bmartus
6

Having trouble with relationship/collection ..

I've been struggling with this in another project, but am able to show the problem using a standard Posts/Comments/Users example project. I am trying to show a list...
mindoroDev mindoroDev
8

I need help

How to use this https://github.com/akiyamaSM/larapoll ? do i need to install...
InspiredPrynce InspiredPrynce
8

Database Query Duplicate Entries

Let me explain this to you better so i wont harm myself... I have a staff attendance system that runs offline, when there is internet, it uploads the attendance data online...
ThePoet444 ThePoet444
0

websockets only work once browser hits wss endpoint

I'm currently using beyondcode/laravel-websockets. I have everything setup according to the instructions. The only way to get it to work however, is if I poin...

How to store data about trello style board.

Hi , This probably a mixed question with JavaScript. Forgive me if this is inappropriate for this forum. I am looking for some brainstorming ideas form fellow developers. I...
InspiredPrynce InspiredPrynce
10

Deleting Duplicate Records

Hello guys, i have an issue please someone should help me... I have duplicate records in my database, i mean thousands of them.. How do i delete the duplicates and leaving...
ilex01 ilex01
11

Add a new line before and after the <div> tag in PhpStorm

Hi! Here is my current HTML code in PhpStorm: <body> <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit.&l...

How to select column from nested relationship

Hi, I have a model relationship where a 'topic' has comments, 'comments' have user. Now in the json response i want to send topic with comments and related user. How do i g...
dipeshnx dipeshnx
8

/storage/ directory path

What is the recommended way of pointing Laravel to use different path for /storage/ directory?...
marmour marmour
4

ChangeMessageVisibility - Intermittent Access Denied

Hey everyone! Happy new year! Thanks in advance for any help you guys can provide. I have an SQS queue that appears to work normally most of the time but I ke...
Thavarshan Thavarshan
15

Laravel Installer Shows Segmentation Fault

I keep getting the error segmentation fault laravel new blog every time I run the command laravel new blog. This also happens when I try to...
blaineglynn blaineglynn
3

post request from webhook work locally but appear empty on production

I've created a simple app with a route that posts to a controller. The data that is posted is from a webhook on another app. (it does contain some underscores) In my...
camillele camillele
1

How to keep range values in database

To check a patient's status in a medical test(high, low, average), I have to keep range values for the tests in a table For a test there can be several ranges....
cookie_good cookie_good
4

urlencode not working on forward slash in destroy method

so I have a method: destroy($id){ /* delete database records */ } the route is generated by a resource route. Route::reso...
Create a New Discussion Button