Skip to content

Instantly share code, notes, and snippets.

@chinleung
chinleung / install-laravel-nova-in-subfolder.md
Last active June 22, 2023 19:41
Installing Laravel Nova in subfolder

Instsalling Laravel Nova in a subfolder

This is a guide that will show you how to install Laravel Nova in a subfolder of a domain.

Clone the repository

Clone the repository in the home directory of the cPanel user.

cd /home/user
@chinleung
chinleung / migrate-command-laravel-7x-factories-to-laravel-8x.md
Last active October 8, 2020 18:41
A command to perform basic migration from Laravel 7.x factories to Laravel 8.x

Description

A simple command to create factory classes for Laravel 8.x based on your Laravel 7.x factories definitions.

This command performs the following changes:

  • Create missing factory classes
  • Fill up definition function of the factory class
  • Import existing namespaces into factory class
  • Replace legacy factory(Model::class) with Model::factory() in factory class