Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LaraBABA's avatar

How to theme Lavarel?

Hi All,

I started to learn Yii a little while ago and loved the way that the Gii generator could generate a CRUD very fast, do Lavarel has this as well? As it is a real gain of time. Also, how can I integrate bootstrap quickly in Lavarel please as for me the look of the project is very important.

Thank you all,

Ben

0 likes
10 replies
ax3lst's avatar

As far as I know there isn't a official CRUD generator, but for the bootstrap problem: You can use a CDN and put it in your main layout file. Like this:

<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Your title</title>

  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
 </head>
 <body>

  <div class="container">
   @yield('content')
  </div>

  <script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

 </body>
</html>
LaraBABA's avatar

Nice, thank you everyone for the very quick replies! I will try everything.

LaraBABA's avatar

Sorry one last question. I have installed boostrap but how to add a class here please: $user->username = Input::get('username'); $user->password = Hash::make(Input::get('password'));

Thanks,

Ben

LaraBABA's avatar

I see....I added bootstrap and realized, ouch, it is going to take far more time than with Yii which has yiistrap, no need to add classes, it is all done for you. Will the dev ever think about having a Lavastrap or something that could attach classes to all the inputs automatically?

neolaser's avatar

I often use the frozennode/administrator package in the first stages of my project. If you have setup models you can very quickly have a admin style dashboard ready to use. Supports relationships etc. Not perfect, but fast

LaraBABA's avatar

wow this looks pretty neat actually, do you think it will work with any Laravel versions please? (Even the 5.0)

neolaser's avatar

I havent tried it myself, but I dont see why it wouldn't. You supply the namespace for each of your models, it published stuff to the public and config directory (which I think are configurable anyway)

Please or to participate in this conversation.