Skip to content

Instantly share code, notes, and snippets.

View mshoaibdev's full-sized avatar
😀
Working..

Muhammad Shoaib mshoaibdev

😀
Working..
View GitHub Profile
@mshoaibdev
mshoaibdev / reverb-instructions.md
Created June 30, 2024 10:34 — forked from lewislarsen/reverb-instructions.md
Instructions for how to setup Laravel Reverb in Production.

Reverb Walkthrough

This is a walkthrough of how to configure Laravel Reverb for production using services like Laravel Forge or Ploi. The first step is nginx configuration changes, then .env changes and finally spinning up your Reverb server.

1. Configuring Nginx

Ensure your nginx site configuration has the following inside the server block:

 location /app {
<template>
<section class="pedigree-section full-screen-section has-logo dark">
<div class="container">
<div class="row">
<div class="col-md-12" v-if="data">
<h2 class="title-style text-center">
Pedigree of {{ data.full_name }}
</h2>
</div>
</div>
<template>
<div class="table-scroll-wrap pr-3 height400">
<table
v-if="Object.keys(pedstats).length !== 0"
class="table table-siblings table-pedstats"
>
<thead>
<tr>
<th>Name</th>
<th></th>
$("#end_date").datepicker({
minDate: 0,
// maxDate: (interval-1),
onSelect: function (date, inst) {
var start_date = new Date($('#start_date').val());
var end_date = new Date(date);
days = 24 * 60 * 60 * 1000;
tempStartDate = start_date;
diffDays = Math.round(Math.abs((start_date - end_date) / (days)));
$('.date_times_left').empty();
@mshoaibdev
mshoaibdev / AppServiceProvider.php
Created August 30, 2018 09:12 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()