SecretsSeeker SecretsSeeker
0

Custom auth for nuxt

Nuxt/auth module hurt my brain so long and today I created custom module: First I have this store structure: store/ -- index.js -- mutations.js -- act...
Tips
0
12
khaledz khaledz
12

Restrict access to website by location.

Hi, I'm implementing a project to get the attendance of employees. The attendance can be done if the employee is at the location of the company. The owner of the com...
Tips
12
218
janosk janosk
2

Dinamically generate Gates for permission control

Hi everyone! I know there are several very well written role/permission package for lavarel, but I decided to go with a custom one from scratch because I need only b...
Tips
2
60
Gujarish Gujarish
1

Update Nova cards with Vue

Hello everyone,, Can't find anything related to my question so maybe anyone here can suggest something. My goal is to redraw Nova cards after filtering my model. So after c...
Tips
1
112
cesarmd cesarmd
4

How to keep track of available variables in a PHP file when you have several 'require's?

Coming from a Javascript (Node) background, I find it hard to understand what to expect when you import a file in PHP with require. In Javascript most of the t...
Tips
4
78
nabilunfarhanun nabilunfarhanun
4

How to dry up this part of my code?

I am submitting two forms from same page with ajax. One is to create and another is to update. As they look very similar, my gut says their should be a way to dry up this f...
Tips
4
117
jacobson jacobson
3

Decimal lat lon vs Geo spatial mysql

Hello, I'm working on a project that collects Lat Lon from mobile devices. Currently I've made it using decimal fields and calculating distance between points on php side (...
Tips
3
73
tha07 tha07
1

Editing an already happened transaction

I'm building an online grocery app which records the inventories and sales. I want to include the update sales transaction feature. when recording sales trans...
Tips
1
47
Placid Placid
4

Sublime PHP Companion - import_namespace

I am trying to use https://github.com/erichard/SublimePHPCompanion. But I'm having a hard time...
Tips
4
2049
sujitdhaka sujitdhaka
5

Optional Subject GPA deduct from total GPA

{{ app_data('site_title') }} .card-body> div[class*="col-"]{ margin-bottom: 15px; float: left; } .h1, .h2, .h3, .h4, .h5, .h6, h1,...
Tips
5
159
alois alois
2

CSS and JS Animation, Chart, etc. without External Library

Hey! I was interviewed for a front-end developer position that focuses on animation. Well, I don't really have a solid background in animations using CSS and JS. I could ma...
Tips
2
61
chori.av chori.av
11

A way to store site settings in Laravel

I have a landing page, that needs some settings, managed by admins from admin-panel. What is the good way to implement it? Maybe, some kind of key-value pair databas...
Tips
11
751
ahmedali32 ahmedali32
4

chunked video uploads

Hey i want to make multiple video upload and chunk every video to chunks because it's large videos and with each video i want to send data video description and video name...
Tips
4
292
JackJones JackJones
8

Importing Classes in Sublime Text 3

In every video when Jeffrey says "Let's just go ahead and import this class" and then magically it appears in the use statements, how is he doing tha...
Tips
8
351
bufferoverflow bufferoverflow
1

Embed Laravel app to hybrid app

I have a Laravel website which I want my users to be able to download an "app" version from the Play Store (Android) and App Store (iOS). My idea was to bu...
Tips
1
116
dani94 dani94
2

Any pretty solution for this?

I have Order Model, which has products relationship and products have category relationship. I need to get a function in my model to get single product with a static catego...
Tips
2
149
Valeri0 Valeri0
4

Api Security

Hi, I buil a product tha offer a public api endpoint to collect data from my users' applications, each of those needs to provide their specific API key. Sometimes I...
Tips
4
113
shadrix shadrix
2

What kind of Browser/App is this? (Showing Responsive Devices as a Browser)

I'm watching a Tailwind video and saw this: Do you know what this could be? Original source i...
Tips
2
159
getsolaris getsolaris
1

Laravel Make Service Pattern Command

Hello. I developed it as a command because I was uncomfortable with manual service....
Tips
1
135
anyforsoft anyforsoft
0

Drupal + Gatsby

When creating decoupled Drupal websites, Gatsby can solve a number of issues such as configuration, dynamic web page processing, React compatibility and others. Check out t...
Tips
0
55
FallOutBoi FallOutBoi
1

Question about dropzone validation

Hi, im building a form with dropzone in it. I was wondering if i would not check images for validation can someone just change the maximum file size number in their browser...
Tips
1
106
Thavarshan Thavarshan
11

How to call object property as method?

Is there a way to dynamically call an object property as a method. For instance. class ObjA { public $appPath; } $objA = new ObjA; $objA->ap...
Tips
11
267
troovers troovers
5

How to: Let users know there are new features available?

Hi guys, I've developed an application for multiple clients and am using Laravel Forge and Continues Integration to quickly deploy new features to the application. S...
Tips
5
402
FallOutBoi FallOutBoi
3

Is it okay to use data objects instead of array?

I always displayed data on applications like so Controller : $user = User::find($id)->firstOrFail(); View : <spa...
Tips
3
168
Manrix Manrix
1

Console command refactoring

Hi. I've an artisan console command that process a specific amount of database entries. It works at moment but i see it not well coded and testable. I can't write the exact...
Tips
1
121
Punksolid Punksolid
1

Laravel Telescope In Production Affects Performance?

Hi I been using Laravel Telescope in local and staging server and is incredibly useful, but now that I have my production server, I found that I am already dependent...
Tips
1
465
FallOutBoi FallOutBoi
3

Payment system?

Does laravel cashier supports master card, visa and other payments or i should find some other framework/library....
Tips
3
216
FallOutBoi FallOutBoi
2

Is this unpractical?

Hello, i am building a simple e-commerce application with laravel and i have like 3 columns for each image location for products table. Is it unpractical to have seperate c...
Tips
2
231
Ranx99 Ranx99
1

Is browser testing needed?

Why would someone need to do browser testing? Aren't "feature test" and "unit test" enough? Is browser testing needed?...
Tips
1
167
rohan_mhz rohan_mhz
4

Star Rating

i have rating field in my reviews table which holds numbers from 1-5, now i need to display star rating according to the rating in the reviews table. any tips on how to do...
Tips
4
229
cemcminn cemcminn
0

Card and envelope templates

I need to create a report for my user to print on two different non-traditional formats: 3x5 card size and envelope size for a 'set' of people (different instances). Does...
Tips
0
68
lifesound lifesound
14

laravel , php , java ,salaries , jobs and depression

hi all I`m very depressed that i was working for a project to introduce it to my company as a CMMS , to get a higher job .. Unfortunately , my company got an oracle...
Tips
14
435
netzfabrik netzfabrik
1

Database structure of templates

Hi at all, i need help to design the database. So in the first step i want price templates for each account. So i've now a table for the templates with name, created_at, e....
Tips
1
163
shadrix shadrix
2

How to avoid Interface Segregation in my case? (SOLID)

Hey hey :) I'm trying to use the SOLID-principles, however, I have a problem with Type-Hinting. First, have a look at my code, but it is important to note: $a...
Tips
2
210
linuxhini linuxhini
5

Laracast Loads Very fast

Hi Jeff, do you have a series on website optimization ? How did you achieve such load speeds on laracast. The site is blazing fast....
Tips
5
299
Create a New Discussion Button