Comment by zarpio on How to configure nuxt-i18n for static assets files?
No, I am asking for static folder files, I couldn't find another way to load js files. Do you know the better way? Please share.
View ArticleComment by zarpio on Getting console errors while setting up client to call...
Can you please suggest, what would be PHP example code for this server-side integration? The official guide is really a mess.
View ArticleComment by zarpio on using different env for different cases in nuxt
Can we save secret keys in config.js?
View ArticleComment by zarpio on Nuxt Auth Module - Multiple redirect options after logout
Please share, if you have found any solution.
View ArticleComment by zarpio on sh: 1: cross-env: Permission denied on laravel mix
in the root of your project folder.
View ArticleComment by zarpio on I want to run two nuxt.js(vue.js) apps on one server. (pm2)
How to check what app is running on which port?
View ArticleComment by zarpio on How to access global mixin in a nuxt plugin?
Did you find any solution?
View ArticleComment by zarpio on Where can I find the ports of all running pm2 apps?
please guide, did you find any solution?
View ArticleComment by zarpio on Carbon diffForHumans showing 'ago' only
Yes, it is working fine now. Thank you.
View ArticleComment by zarpio on Laravel 5.6: Customise a paginated resource collection...
@Yahya Uddin can you please answer this question, your help will be appreciated, thanks. stackoverflow.com/questions/72648599/…
View ArticleComment by zarpio on Laravel 5.6 - Pass additional parameters to API Resource?
For collection, I have updated the answer.
View ArticleComment by zarpio on Lumen 6.0 assertSessionHasErrors() method doesn't exist
It worked, but can you please mention where is this documentation?
View ArticleCan we use PUT method for file upload in Laravel?
API RouteRoute::post('user/profile', 'ApiUserController@updateProfile');Dump in controllerdd($request->all());Output: (working fine with POST method)array:2 ["nick_name" => "steven""avatar" =>...
View ArticleHow to configure SweetAlert properly in Vue CLI
Here are my configuration and stpes.1- from terminalnpm install sweetalert22- in main.jsimport Swal from 'sweetalert2'window.swal = Swal;Vue.use(Swal);// Toast configconst toast = Swal.mixin({ toast:...
View ArticleGetting console errors while setting up client to call server side PayPal API
While setting up, PayPal client code to test server integration, from https://developer.paypal.com/docs/archive/checkout/how-to/server-integration/My code is as...
View ArticleAnswer by zarpio for Remove Ship To label from Paypal Payment
When I was using smart payment buttons, the following helped me to hide ship to.createOrder: function(data, actions) { var payableAmount = 3; return actions.order.create({ purchase_units: [{ amount: {...
View ArticleAnswer by zarpio for how do you install and run puppeteer for firefox
type the command below to locate your browserwhereis firefoxORwhereis google-chromeI used chrome so, mine was. You can replace it with firefox path./usr/bin/google-chromehence, the final step.export...
View ArticleAnswer by zarpio for @nuxtjs/auth Why refresh page always redirect to login
Extending Fauzan Edris answer.I was using Auth Nuxt, following fixed my issue.export const actions = { async nuxtServerInit({ commit }, { req }) { let auth = null if (req.headers.cookie) { // cookie...
View ArticleAnswer by zarpio for Include external javascript file in a nuxt.js page
Adding as globallyNavigate to the nuxt.config.js file.It adds the script tag to all pages in your Nuxt app.export default { head: { script: [ { src: "https://code.jquery.com/jquery-3.5.1.min.js", }, ],...
View ArticleAnswer by zarpio for How to implement Firebase Cloud Messaging (FCM) with...
Step 1) Install dependenciesnpm install firebasenpm install @nuxtjs/firebaseStep 2) Create a file serviceWorker.js on your project's root folder.self.addEventListener('push', function (e) {data =...
View ArticleNuxtJS auth redirect after logout to various paths, if needed
Did Google and read the documentation but no solution found yet, please suggest how to log out the user to different paths if needed.My scenario/issueIf a user is verified and logout, should be...
View ArticleAnswer by zarpio for Nuxt js - Fresh install of nuxt 2.14.6 contains babel...
package.json (When my packages were as under)"dependencies": {"@nuxtjs/axios": "^5.13.6","core-js": "^3.15.1","nuxt": "^2.15.7","vuetify": "^2.5.5"},"devDependencies": {"@nuxtjs/vuetify":...
View ArticleHow to configure laravel-vue-pagination for Nuxt js
installed vianpm i laravel-vue-paginationcreated a file under plugins folder as "laravel-vue-pagination.js"import Vue from 'vue'import LaravelVuePagination from...
View ArticleLaravel 5.6 chunk with groupBy
I am getting the error while executing below, while without groupBy it is working fine. User::select('col')->groupBy('col1')->chunk(100, function ($users) { foreach ($users as $user) {...
View Article1390 Prepared statement contains too many placeholders using Laravel 5.6
Getting following errorSQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeholdersMy query has become due to data in the table recentlySELECT *FROM tableWHERE col1 =...
View ArticleHow to integrate PayPal Smart Payment buttons in NuxtJs?
My current working solution.<template><div><div ref="paypal"></div> </div></template><script>export default { mounted: function () { const script =...
View ArticleAnswer by zarpio for getting _ctx.route is not a function
Install Ziggy into your Laravelcomposer require tightenco/ziggyGenerate resources/js/ziggy.js byphp artisan ziggy:generateUpdate webpack.mix.js fileconst path = require('path')mix.webpackConfig({...
View ArticleAnswer by zarpio for Define global component in InertiaJS with Vue 3
I was having 2 layouts for backend(admin-panel) and frontend(website), achieved as follows. Using inertia default middleware file.project/app/Http/Middleware/HandleInertiaRequests.phpclass...
View ArticleUnable to renew SSL certificate using apache2 at ubuntu (aws ec2) instance
The website was running fine with GoDaddy's SSL installed, it has been approx a month since SSL expired and I lost the CSR file we used for the SSL certificate first time.Steps I tried:Created new CSR...
View ArticleHow to pass "conditional" default value by checking its value in the Vue...
Componentprops: { image: { type: String, default() { return this.defaultImage } }},computed: { defaultImage() { return this.$config.baseUrl +'/images/default.jpg' }},Using the above component, when...
View ArticleHow to preserve-scroll with buttons using inertia js
Working<Link :href="route('products')" preserve-scroll>Products</Link>Not Working<form @submit.prevent="submit"> ...<button type="submit"...
View ArticleLaravel observer taking too long when updating
How to use Laravel observer to update specific fields.ItemController.phppublic function update(ItemRequest $request, Item $item){ abort_if(Gate::denies('item-update'), Response::HTTP_FORBIDDEN, '403...
View ArticleLaravel Dusk (TTY mode is not supported on Windows platform)
Steps to reproduce:Installed as written here https://laravel.com/docs/5.4/dusk#installation1) composer require --dev laravel/dusk:^1.02) app\Providers\AppServiceProvider.phpuse...
View ArticleAnswer by zarpio for How to change Laravel Validation message for max file...
In Laravel 8To generate a new validation rule.php artisan make:rule MaxSizeRuleEdit your rule as follows.<?phpnamespace App\Rules;use Illuminate\Contracts\Validation\Rule;class MaxSizeRule...
View ArticleHow to configure nuxt-i18n for static assets files?
Please note, I have some js files included as follows, from the root "static" directory.head: {script: [{ type: 'text/javascript', src: 'js/jquery.min.js', body: true }, { type: 'text/javascript', src:...
View ArticleAnswer by zarpio for How to deploy NuxtJs Application on Apache and access it...
After a long time, my question was alone, so I decided to give it a partner with my answer, part a joke I have found the solution, and the following is my finding. Please update it if you have the more...
View ArticleHow to deploy NuxtJs Application on Apache and access it with IP-URL instead...
Please note, this is my first nuxt-app trying to deploy on a staging server. We have a staging AWS server where many web applications are deployed as follows.http://0.0.0.0/app1/public...
View ArticleRegex start with a word till specific word/char/space
The string could be as following line by line every time.code=876 and town=87 and geocode in(1,2,3)code=876 and town=878 and geocode in(1,2,3)code=876 and town="878" and geocode in(1,2,3)code=876 and...
View ArticleAnswer by zarpio for Can I start atom from my ubuntu on windows terminal?
Another way is, to try the following commandsnap run atomIf the above command works for you, you can make an aliasalias atom='snap run atom'
View Article