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
@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>
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Menu extends Model
{
//Using the table name
<?php
/**
* Created by PhpStorm.
* User: prio
* Date: 7/26/15
* Time: 12:14 PM
*/
namespace App\Http\Controllers\Admin;
<?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
namespace App\Http\Requests;
use App\Http\Requests\Request;
class MenuAdminFormCreateRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
@prio101
prio101 / depth_checker.rb
Last active August 29, 2015 14:24
Depth Checker
n = 9
for i in 0..n
puts "Your Depth is #{i} !!!"
end
@prio101
prio101 / themeHelper.php
Created June 22, 2015 09:25
Theme Helper For The Codeigniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// CSS loader front-end
if( ! function_exists('theme_style_site')){
function theme_style_site($var = ''){
$url = base_url("assets/site/".$var);
return '<link rel="stylesheet" href="'.$url.'" >';
}
}
@prio101
prio101 / ChatPHP.php
Last active August 29, 2015 14:20
Chat Client Core
<?php
/*
* Start of the Base_chat
* Chat App based on PHP
* Author : Infobase Team
*/
class BaseChat{
// Database Connection
private $dbConnection ;
@prio101
prio101 / yearSelect.php
Created April 3, 2015 04:54
Year Option maker in select form.
<select name="pickYear">
<option value="1980"<?php echo $pickYear == '1980' ? 'selected' == "selected" : '' ?>> Year :</option>
<?php
for ($i=date('Y'); $i >= 1980 ; $i--) {
$selected = '' ;
@prio101
prio101 / cahpter_13.rb
Created March 8, 2015 18:03
Chapter 13 code of Learn ruby hard way
first , second , third = ARGV
puts "Your first variable is : #{first}"
puts "Your second variable is : #{second}"
puts "Your third variable is : #{third}"