Skip to content

Instantly share code, notes, and snippets.

View yacinepes's full-sized avatar

yassine bensaoucha yacinepes

View GitHub Profile
@yacinepes
yacinepes / adminController
Created May 14, 2015 16:16
عرض جميع الاعمال
<?php
class adminController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
@mnshankar
mnshankar / macros
Last active March 17, 2021 19:51
Laravel 4 (Twitter Bootstrap 3.0 compliant) form macros that I commonly use
<?php
/*********************************************************************************************
* Example usage (In view)
* <div class="welcome">
<?php echo Form::open(array('route'=>'process','class'=>'form-horizontal'))?>
<?php echo Form::textField('first_name')?>
<?php echo Form::textField('last_name')?>
<?php echo Form::emailField('email')?>
<?php echo Form::passwordField('password')?>
<?php echo Form::selectField('select_one', array('1'=>'abc', '2'=>'def'))?>