April 2016

  • Kejadah Font Awesome? Baca sini. Add dalam head / master layout view <link href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css” rel=’stylesheet’ type=’text/css’> Cara guna, contoh nak add button facebook dengan icon “f”. <div class=”quote”><a href=”/login/facebook”> <div class=”btn btn-md btn-primary”> <i class=”fa fa-facebook”></i> Login with Facebook </div></a></div> Banyak lagi boleh tengok disini.

    Baca catatan

  • Download at http://www.cssscript.com/generic-country-state-dropdown-list-countries-js/ Create public/js directory and put all the .js file inside. Create public/css directory and put all the .css file inside. Add to the master blade head tags <script type=”text/javascript” src=”{{ asset(‘js/countries.js’) }}”></script> Add to the bottom of master body tags area <script language=”javascript”> populateCountries(“country”, “state”); // first parameter is id of country drop-down…

    Baca catatan

  • Add jquery css in your header (view) <link rel=”stylesheet” href=”//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css”> Add jquery js in yoyr footer (view – body tags) <script> $(function() { $( “#datepicker” ).datepicker(); }); </script> Edit your forms {!! Form::text(‘date’, ”, array(‘id’ => ‘datepicker’,’class’ => ‘form-control’)) !!}   Reference: Laracast

    Baca catatan

  • We need to install http://laravelcollective.com. HTML: HTML helpers for creating common HTML and form elements Run composer require “laravelcollective/html”:”^5.2.0″   OR edit composer.json, Add “require”: { “php”: “>=5.5.9”, “laravel/framework”: “5.1.*”, “laravelcollective/html”: “5.1.*” }, Run composer update Edit config/app.php. Add to the provider array App\Providers\RouteServiceProvider::class, Collective\Html\HtmlServiceProvider::class, Add to the aliases array ‘View’ => Illuminate\Support\Facades\View::class, ‘Form’ => Collective\Html\FormFacade::class, ‘Html’…

    Baca catatan

  • Selain facebook, Socialite juga support Facebook Github Google Twitter Bitbucket INSTALL SOCIALITE Pertama install socialite composer require laravel/socialite atau lagkah alternatif, edit file composer.json, tambah pada require section “laravel/socialite~2.0” dan jangan lupa run composer update. EDIT CONFIG/APP.PHP Edit config/app.php, tambah code berikut pada bahagian array provider Laravel\Socialite\SocialiteServiceProvider::class, Tambah Socialide facade pada bahagian array aliases ‘Socialite’=>…

    Baca catatan