- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| <?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. |
| @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 |
| <?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; |
| " ---------------------- 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 |