Add following lines to your .bashrc file.
You can find that file in home directory,
Please check the show hidden file
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
| <?php | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreateStudentsTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. | |
| * |
| <?php | |
| namespace App\Http\Controllers; | |
| use App\Http\Requests; | |
| use Illuminate\Http\Request; | |
| use Session; | |
| class HomeController extends Controller |
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use App\Http\Requests; | |
| use App\Student; |
| <?php | |
| namespace App\Http\Controllers\Auth; | |
| use App\User; | |
| use Validator; | |
| use App\Http\Controllers\Controller; | |
| use Illuminate\Foundation\Auth\ThrottlesLogins; | |
| use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; |
| <section class="panel" id="fourth"> | |
| <div class="intro color2"> | |
| <h2 class="major">Few of my works</h2> | |
| <p>Sed vel nibh libero. Mauris et lorem pharetra massa lorem turpis congue pulvinar. Vivamus sed feugiat finibus. Duis amet bibendum amet sed. Duis mauris ex, dapibus sed ligula tempus volutpat magna etiam.</p> | |
| </div> | |
| <div class="gallery"> | |
| <div class="group span-3"> | |
| <a href="images/gallery/fulls/01.jpg" class="image filtered span-3" data-position="bottom" alt="This is a test sentense."> | |
| <img src="images/gallery/thumbs/01.jpg" alt="" /> | |
| <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repudiandae, similique, natus? Vero quisquam aperiam ipsa esse vitae voluptatum, obcaecati expedita illum consequuntur autem non nihil, voluptate maiores suscipit saepe magnam.</p> |
| @extends('main') | |
| @section('title', ' | Create new post') | |
| @section('content') | |
| <div class="col-md- offset-2 col-md-8"> | |
| {!! Form::open(['route' => 'posts.store']) !!} | |
| <div class="form-group"> | |
| {!! Form::label('title', 'Title:') !!} | |
| {!! Form::text('title', null, ['class'=>'form-control', 'placeholder' => 'Title']) !!} |
Add following lines to your .bashrc file.
You can find that file in home directory,
Please check the show hidden file
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
| VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i |
| /*Edit the posts controller as follows*/ | |
| def create | |
| @post = Post.create(post_params) | |
| if @post.save | |
| flash[:success] = "Post created successfully." | |
| redirect_to root_path | |
| else | |
| flash[:danger] = @post.errors.full_messages | |
| redirect_back(fallback_location: root_path) |