Looking to hire Laravel developers? Try LaraJobs

laravel-dinahosting maintained by numaxlab

Description
Laravel utilities for Dinahosting hosted projects
Last update
2026/05/20 13:39 (dev-main)
License
Links
Downloads
44

Comments
comments powered by Disqus

Laravel Dinahosting

Laravel utilities for projects hosted on Dinahosting shared hosting.

Requirements

  • PHP ^8.2
  • Laravel 10+

Installation

composer require numaxlab/laravel-dinahosting

The service provider is registered automatically via Laravel's package auto-discovery.

Commands

Symlink

Dinahosting shared hosting exposes a www/ directory as the web root instead of the standard public/ directory. This command creates a symlink from ../www to public/ so your Laravel application is served correctly.

php artisan dinahosting:symlink

Run this once after deploying your application to the server for the first time.

Envoy

Installs Laravel Envoy as a dev dependency and scaffolds an Envoy.blade.php file pre-configured for Dinahosting deployments.

php artisan dinahosting:envoy-setup

Use --force to overwrite an existing Envoy.blade.php without being prompted:

php artisan dinahosting:envoy-setup --force

After running the command, edit the generated Envoy.blade.php to set your server credentials and project directory, then run your first deploy:

php vendor/bin/envoy run dinahosting-deploy

The generated Envoy task pulls the latest code from main, installs Composer dependencies (without dev packages), runs package:discover, and executes pending migrations — using Dinahosting's custom PHP binary path ($HOME/.bin/php).

License

MIT — see LICENSE.