- Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine. https://getcomposer.org/
- Via Composer Create-Project, command in your terminal:
- All command are available
- make a controller
php artisan make:controller ControllerName
- link in design folder
{{asset('public/FrontEnd/css/bootstrap.css')}}
- include section
@include('FrontEnd.include.header')
- include dynamic area
we use yield when we use this
@section("mainContain")
@endsection()
- href="{{url('/category')}}"
- @extends('frontEnd.master')
- Basic login and registration views and routes
- Create Migration
- migrate
php artisan migrate
- after update migrate file
goto .env file and add database name,passsword,
- model and migrate file
- all method return ll value
- if else in blade template short cut
{{$userInfoById->gender =='female' ? 'checked':'' }}
- php artisan serve
- Reformatting the code of a directory
- press Ctrl+Alt+L.
- Reformat Code in Phpstrome
- php artisan db:seed
- pull-right (Bootstrap)
Route::resource('store','shadhinController');
{{Form::open(['url'=>'store/abcd','method'=>'POST'])}}
{{method_field('PUT')}}
{{ Form::text('username',$value=null,['class'=>'form-control','placeholder'=>'enter your name']) }}
{{Form::select('size', ['L' => 'Large', 'S' => 'Small'])}}
{{Form::file('image')}}
<br>
{{ Form::checkbox('chk', 'Remember Me')}} Remember Me
{{ Form::submit('Login',['class'=>'btn btn-success btn-block','name'=>'btn']) }}
{!! Form::close() !!}
No comments:
Post a Comment