Skip to content

Instantly share code, notes, and snippets.

View mubassirhayat's full-sized avatar
💻
Working Remotely

Mubassir Hayat mubassirhayat

💻
Working Remotely
View GitHub Profile
{"lastUpload":"2020-07-24T12:02:10.610Z","extensionVersion":"v3.4.3"}
@mubassirhayat
mubassirhayat / commands.sh
Created August 5, 2019 10:59
Commands to run right after package update in composer or code change in laravel
php artisan cache:clear && php artisan view:clear && php artisan event:clear && php artisan optimize:clear && php artisan route:clear && php artisan clear-compiled
<?php
// Migration for Social Logins Table
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSocialLoginsTable extends Migration
{
/**
* Run the migrations.
@mubassirhayat
mubassirhayat / Readme.md
Created May 15, 2018 07:59
Example of Request Facade for Url Parameters

Url

example.com/route-name?var1=value1

Route

Route::get('route-name', 'Namespace\ControllerClass@functionName')->name('route-name');

Function Definitation

public function functionName(Request $request) {
@mubassirhayat
mubassirhayat / 00.howto_install_phantomjs.md
Created December 22, 2017 07:22 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@mubassirhayat
mubassirhayat / create_laravel_app.sh
Created September 11, 2017 15:39 — forked from connor11528/create_laravel_app.sh
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
cp .env.example .env
git init
git add -A
@mubassirhayat
mubassirhayat / 1README.md
Last active July 22, 2017 10:54 — forked from joseluisq/1README.md
How add a custom field to Laravel 5.4 default login. LoginController.php

How add a custom field to Laravel 5.4 default login controller.

In this php example (app/Http/Controllers/Auth/LoginController.php) my model is called User and the custom field for login validation is confirmed. ($User->confirmed)

Feel free to customize!

@mubassirhayat
mubassirhayat / ssl_on_wamp.pl
Created July 13, 2017 08:08 — forked from muthuishere/ssl_on_wamp.pl
Setup SSL on WAMP for virtual server Virtual hosts on wamp
set WAMP_INSTALL_LOCATION="c:\wamp" #modify
1. Open command prompt as admin Goto %WAMP_INSTALL_LOCATION%\bin\apache\apache2.x.x\bin>
2. Type => set OPENSSL_CONF=%WAMP_INSTALL_LOCATION%\bin\apache\apache2.x.x\conf\openssl.cnf
@mubassirhayat
mubassirhayat / List.md
Created October 27, 2016 08:49 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@mubassirhayat
mubassirhayat / preprocessor_fun.h
Created October 26, 2015 07:13 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,