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.
April 2016
-
-
Biasa berlaku pada pengguna window. Ko download http://curl.haxx.se/ca/cacert.pem (mesti download dalam forman .pem, bukan .txt) Pastikan save dalam directory yang sama dengan PHP.INI (Biasanya C:/XAMPP/PHP/) Buka PHP.INI Gantikan link ke file yang anda download tadi dengan actual path baru. [cURL] curl.cainfo=”D:\xampp\php\cacert.pem” Referece: Here
-
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…
-
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
-
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’…
-
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’=>…