Open in app

Sign In

Write

Sign In

Mark Caggiano
Mark Caggiano

100 Followers

Home

About

Sep 14, 2022

Handle Svelte Forms Easily With Actions

Creating forms can be boring… usually in Svelte JS and in general with other frameworks, you have to create the data, process it, validate it, send it, handle the response and also write down the html markup. <script> const data = {…

Sveltejs

4 min read

Handle Svelte Forms Easily With Actions
Handle Svelte Forms Easily With Actions
Sveltejs

4 min read


Sep 13, 2022

Localstorage in Javascript: a better and easier way using getters and setters

We all know that in JS we can use localStorage to persist data between pages reload like this: let myItem = localStorage.getItem('item') ?? null; // Do stuff localStorage.setItem('item', 'data'); // Page refresh console.log('myItem: ', myItem); // Prints data Yes but is so unelegant and verbose. And what if we want…

Javascript Tips

2 min read

Localstorage in Javascript: a better and easier way using getters and setters
Localstorage in Javascript: a better and easier way using getters and setters
Javascript Tips

2 min read


Sep 13, 2022

How to do Forms in Laravel InertiaJS + Svelte (Should work on Vue and React Too)

If you read my series on Laravel InertiaJS + Svelte, you might noticed there is much more to be covered. Forms are an important part of a Laravel App, so handle them is a must. You might get tempted to use axios to do all the frontend calls, but using…

Svelte

4 min read

How to do Forms in Laravel InertiaJS + Svelte (Should work on Vue and React Too)
How to do Forms in Laravel InertiaJS + Svelte (Should work on Vue and React Too)
Svelte

4 min read


Sep 7, 2022

Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 2

You are probably seeing errors variable let’s set it up in HandleInertiaRequest middleware: <?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Inertia\Middleware; class HandleInertiaRequests extends Middleware { /** * The root template that's loaded on the first page visit. * *…

Laravel

2 min read

Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 2
Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 2
Laravel

2 min read


Sep 7, 2022

Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 1

A few days ago i had to write a landing page, but tired of the complexity of react and angular, and i didn’t want to use something like AlpineJS or old grandpa jQuery… I tried Svelte and i found it amazing ! Fast to develop, fast to run, very simple…

Svelte

6 min read

Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 1
Laravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 1
Svelte

6 min read


Mar 7, 2022

How To Write A Simple PHP Shell

DISCLAIMER: This should be used just for penetration testing purpose. If you use it without the authorization of the owner of the website, you could be in legal trouble. Do you have access to a php server and need a php shell, but you don’t want to spend days creating…

PHP

3 min read

How To Write A Simple PHP Shell
How To Write A Simple PHP Shell
PHP

3 min read


Mar 4, 2022

How To Automate Connect, Generate And Add An SSH Key To A Server

This is probably the last article you will read about connecting, generating and adding ssh keys to a server. Let’s write a script that will do it for us. First let’s generate the ssh key. Open a terminal and put this: $ ssh-keygen -t rsa -b 4096 This will generate…

Ssh

3 min read

How To Automate Connect, Generate And Add An SSH Key To A Server
How To Automate Connect, Generate And Add An SSH Key To A Server
Ssh

3 min read


Feb 27, 2022

How To Debug Wordpress Using XDebug and Visual Studio Code

Are you writing a Wordpress Theme, Plugin, or simply something is not working anymore ? Let’s fix it. Using print_r, echo and dd can be very usefull, but it has its own limits…. To do something more serious and to understand the logic and the flow behind a software you…

Xdebug

4 min read

How To Debug Wordpress Using XDebug and Visual Studio Code
How To Debug Wordpress Using XDebug and Visual Studio Code
Xdebug

4 min read


Feb 21, 2022

Laravel Artisan How To Make Controller

Do you need to make a new controller in Laravel ? It is very simple, just run this command: php artisan make:controller MyCustomController And that’s it ! This will create an empty controller in directory app/Http/Controllers with no methods… But I need more methods That is why you can make a resource controller, a controller…

Laravel

2 min read

Laravel

2 min read


Feb 15, 2022

How To Display Flash Messages With Laravel 9 + Jetstream + Vue Inertia.JS

Laravel Jetstream can be confusing, so i decided to write articles to make it easy to develop using this stack. Laravel Jetstream + Vue Inertia.JS is a very powerfull stack you can use to develop all kind of applications really fast. …

PHP

2 min read

PHP

2 min read

Mark Caggiano

Mark Caggiano

100 Followers

Internet Marketer, Web Developer, Traveler

Following
  • Italo Baeza Cabrera

    Italo Baeza Cabrera

  • Fast Company

    Fast Company

  • Node.js

    Node.js

  • Francesco Menghini

    Francesco Menghini

  • Business Insider

    Business Insider

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech