Looking to hire Laravel developers? Try LaraJobs

laravel-base maintained by properos

Description
An amazing toolkit to kickstart your Laravel project.
Author
Last update
2026/01/26 23:30 (dev-master)
License
Links
Downloads
3 367
Tags

Comments
comments powered by Disqus

Properos Base

Base package with classes (Api, Base, Helper, Paginator, Theme), controllers and views necessarry to start a project.

Register provider on config/app.php

    'providers' => [
        "...",
        Properos\Base\BaseServiceProvider::class,
        "..."
    ],

Run composer dump php artisan vendor:publish Select -> Properos\Base\BaseServiceProvider

Themes It contains a Themes class to allow the use of several themes in the project. The name of theme is declared on env variable "THEME", if this variable isn't declare it going to take a default theme.

Use themes on routers.

    Route::get('/', function () {
        return  view('themes.'.\Properos\Base\Classes\Theme::get().'.index')->with(['theme'=>\Properos\Base\Classes\Theme::get()]);
    });

Create env.js Add on webpack.mix.js .js('resources/assets/js/bootstrap.js', 'public/be/js/core.js') .sass('resources/assets/js/be/sass/app.scss', 'public/be/css')

Add on resources/assets/bootstrap.js

    import Helpers from './misc/helpers'
    window.Helpers = Helpers;

Remove from resources/assets/bootstrap.js

    try {
        window.$ = window.jQuery = require('jquery');

        require('bootstrap');
    } catch (e) {}

Run npm install

Define host, database on .env

    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=database_name
    DB_USERNAME=root
    DB_PASSWORD=

Add on app/Providers/AppServiceProvider.php

    use Illuminate\Support\Facades\Schema;
    
    public function boot()
    {
        Schema::defaultStringLength(191);
    }

Run php artisan migrate