Skip to content

Instantly share code, notes, and snippets.

View rohan-krishna's full-sized avatar
👻
I may be slow to respond.

Rohan Krishna rohan-krishna

👻
I may be slow to respond.
View GitHub Profile
<?php
namespace app;
use app\Product;
use Carbon\Carbon;
class ProductFilter extends QueryFilter {
public function
@rohan-krishna
rohan-krishna / create_tasks_table.php
Created December 27, 2018 11:38
1375144f4718_create_tasks
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
@rohan-krishna
rohan-krishna / create_tasks_table.php
Last active December 27, 2018 12:32
1375144f4718_tasks_migration_final
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
@rohan-krishna
rohan-krishna / cors-nginx.conf
Created July 24, 2020 21:57 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#