Source: 2020 State of SaaS Product Onboarding | HN
[toc]
- B2C
- 73% Freemium
- 23% Free Trial
- B2B
- 86% Free Trial Know customer, freemium/free-trial helps them use/get addicted to the convenience of your software. Probably a good idea.
laravel new breezy-login | |
cd breezy-login | |
composer require laravel/breeze | |
php artisan breeze:install vue | |
# Or... | |
php artisan breeze:install react | |
npm install |
<div class="container p-4 mx-auto"> | |
<h1 class="text-2xl text-gray-900">Infinite Load Posts</h1> | |
<div class="grid grid-cols-1 gap-8 mt-4 md:grid-cols-1 lg:grid-cols-1"> | |
@foreach($posts as $post) | |
<a href="#" class="block p-4 overflow-hidden bg-white rounded shadow-sm hover:shadow" :key="$post['id']"> | |
<h1 class="text-lg text-gray-800 truncate"> | |
{{ $post['title'] }} | |
</h1> |
<!DOCTYPE html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="csrf-token" content="{{ csrf_token() }}"> | |
<title>{{ config('app.name', 'Laravel') }}</title> | |
<!-- Fonts --> |
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreatePostsTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
<?php | |
namespace App\Http\Livewire; | |
use App\Models\Post; | |
use Illuminate\Pagination\Cursor; | |
use Illuminate\Support\Collection; | |
use Livewire\Component; | |
class InfinitePosts extends Component |
#!/usr/bin/env php | |
<?php | |
if (file_exists(__DIR__ . '/../../../autoload.php')) { | |
require __DIR__ . '/../../../autoload.php'; | |
} else { | |
require __DIR__ . '/../vendor/autoload.php'; | |
} | |
$app = new Symfony\Component\Console\Application('Laravel Installer Override', '4.2.0'); |
<?php | |
namespace LaravelCustomInstaller\Installer\Console; | |
use Laravel\Installer\Console\NewCommand as BaseCommand; | |
use RuntimeException; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Process\Process; |
Source: 2020 State of SaaS Product Onboarding | HN
[toc]
server { | |
listen 80; | |
listen [::]:80; | |
server_name ~^(?<domain>.+)\.test$; | |
root /home/<yourusername>/sites/$domain; | |
index index.php index.html index.htm; | |
# serve static files directly | |
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ { |
# It's not recommended to modify this file in-place, because it | |
# will be overwritten during upgrades. If you want to customize, | |
# the best way is to use the "systemctl edit" command. | |
[Unit] | |
Description=The PHP FastCGI Process Manager | |
After=network.target | |
[Service] |