Skip to content

Instantly share code, notes, and snippets.

View prio101's full-sized avatar
:shipit:
Making Stuff

Mahabub Islam Prio prio101

:shipit:
Making Stuff
View GitHub Profile
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class MenuAdminFormCreateRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
<?php
/**
* Created by PhpStorm.
* User: prio
* Date: 7/26/15
* Time: 12:14 PM
*/
namespace App\Http\Controllers\Admin;
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Menu extends Model
{
//Using the table name
@extends('admin.layouts.master')
@section('content')
<!-- **********************************************************************************************************************************************************
MAIN CONTENT
*********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
<section class="wrapper">
<h3><i class="fa fa-angle-right"></i> Add New Menu</h3>
# Testing the response
test "should get the home index" do
assert_routing 'admin/home' , {controller: 'admin/home/home' , action: 'index' }
assert_response :success
end
test "should go into the home index with okay response" do
get :index
assert_response :success
end
@prio101
prio101 / excelSheetConvert.php
Last active January 22, 2016 03:54
Please check this
<?php
use Maatwebsite\Excel\Excel;
use Carbon\Carbon;
use App\Model\BokkingsModel;
class SomeController extends Controller{
/**
* Export to Excel data sheet
*
<?php
namespace App\Http\Controllers\Api\V1;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Psy\Util\Json;
@prio101
prio101 / .vimrc
Created March 7, 2016 18:03
Vim Vundle gist
" ---------------------- USABILITY CONFIGURATION ----------------------
" Basic and pretty much needed settings to provide a solid base for
" source code editting
" don't make vim compatible with vi
set nocompatible
" turn on syntax highlighting
syntax on
" and show line numbers
@prio101
prio101 / vim_cheatsheet.md
Created March 17, 2016 18:12 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close