php - bootstrap not working in laravel5 -
i followed this turotial basic laravel learning. executed composer require illuminate/html
. import bootstrap in project, in 'providers', added
illuminate\view\viewserviceprovider::class, illuminate\html\htmlserviceprovider::class,
and in alaises, added
'form'=> illuminate\html\formfacade::class, 'html'=> illuminate\html\htmlfacade::class,
but bootstrap not seem working.
{!! form::open() !!} <div class="form-group"> {!! form::label("name : ", "your name") !!} {!! form::text("username", null, ["class"=>"form-control"]) !!} </div> {!! form::close() !!}
the text field not stretch width of page, supposed to.
any idea why so? or other alternative solution ?
you need include link bootstrap in html template file.
<!doctype html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> </head> <body> <div id = "container"> @yield("content") </div> </body> </html>
Comments
Post a Comment