Useful blade components and functionality for most Laravel projects.

Overview

laravel-base

Latest Version on Packagist Tests Total Downloads

Note: Package is still in early stages of development, so functionality is subject to change.

LaravelBase is a package I've created to provide functionality and blade components I commonly need in most projects without the need to keep duplicating the code between projects. This package is very opinionated and may not be suitable for other people, so use at your own risk!

If you are using Laravel Fortify and/or Jetstream, you should not use this package, as there will be conflicts between them. While I think those two packages are great, I decided to take some of the functionality and create my own versions of some of it to satisfy my own needs and preferences. It is meant mainly for my own personal use, but you are of course free to use it if it suits your project's needs.

Installation

You can install the package via composer:

composer require rawilk/laravel-base

You can publish the config file with:

php artisan vendor:publish --provider="Rawilk\LaravelBase\LaravelBaseServiceProvider" --tag="laravel-base-config"

You can view the default configuration here: https://github.com/rawilk/laravel-base/blob/main/config/laravel-base.php

Alternatively you can run the install command this package provides, which will publish all of the package assets and set up the providers for you.

php artisan laravel-base:install

Warning: You should not run this command on an existing project! When installing or updating on an existing project, you should manually publish/configure as needed.

Usage

More documentation pending!

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

Please review my security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

You might also like...
Worlds (soon to be) most advanced Anime site! Featuring Administration features and everything you need for users and yourself. The successor of aniZero.

/**********************************************************************\ | _____ H33Tx & xHENAI __ 31.01.2022| |

Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css. Requires Livewire and AlpineJS.

Laravel Livewire Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size W

Laravel components for WordPress plugins and themes

Acorn Acorn adds Laravel components to use in your WordPress plugins and themes. Contributing Contributions are welcome from everyone. We have contrib

Laravel-comments-livewire - Livewire components for the laravel-comments package
Laravel-comments-livewire - Livewire components for the laravel-comments package

Associate comments and reactions with Eloquent models This package contains Livewire components to be used with the spatie/laravel-comments package. S

PlayZ is an esport event organization and management website allowing the creation of tournaments on the most popular video games of the esport scene.

PlayZ the playz to play Table of Contents Description "What is Playz?" In one sentence PlayZ is "an esport event organization and management website a

MySecureVault is the most secure passwords, notes and files vault on the Internet.

MySecureVault MySecureVault is the most secure passwords, notes and files vault on the Internet. It has been developed with ultimate privacy and secur

This package gives you a set of conventions to make the most out of Hotwire in Laravel

Introduction This package gives you a set of conventions to make the most out of Hotwire in Laravel (inspired by the turbo-rails gem). There is a comp

An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality.

Support An opinionated support package for Laravel, that provides flexible and reusable helper methods and traits for commonly used functionality. Ins

Laravel blade directives and php helpers for serverside rendered content, based on browser window size WITHOUT css

Laravel Window Size and Breakpoints Laravel blade directives and php helpers for server side rendered content, based on browser window size WITHOUT cs

Comments
  • Cannot be installed

    Cannot be installed

    Bug description

    When try to install the package it throws an exception:

    
      Class "App\Support\PermissionName" not found
    
      at vendor/rawilk/laravel-base/routes/admin-routes.php:24
         20▕                 ->group(function () {
         21▕                     Route::get('/', [Controllers\Admin\UsersController::class, 'index'])
         22▕                         ->name('index');
         23▕                     Route::get('/create', [Controllers\Admin\UsersController::class, 'create'])
      ➜  24▕                         ->middleware('permission:' . PermissionName::USERS_CREATE)
         25▕                         ->name('create');
         26▕
         27▕                     Route::prefix('/{user}')->group(function () {
         28▕                         Route::get('/', [Controllers\Admin\UsersController::class, 'edit'])
    
          +22 vendor frames
      23  [internal]:0
          Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(Rawilk\LaravelBase\LaravelBaseServiceProvider))
    
          +5 vendor frames
      29  artisan:37
          Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    

    Steps to reproduce

    1. laravel new test-base
    2. composer require rawilk/laravel-base
    3. php artisan vendor:publish --provider="Rawilk\LaravelBase\LaravelBaseServiceProvider" --tag="laravel-base-config"
    4. php artisan laravel-base:install

    Relevant log output

    No response

    Operating system

    No response

    Browser

    No response

    bug 
    opened by vlados 0
Releases(v0.4.9)
Owner
Randall Wilk
Randall Wilk
Laravel Livewire (TALL-stack) form generator with realtime validation, file uploads, array fields, blade form input components and more.

TALL-stack form generator Laravel Livewire, Tailwind forms with auto-generated views. Support Contributions Features This is not an admin panel genera

TinaH 622 Jan 2, 2023
Custom Blade components to add sortable/drag-and-drop HTML elements in your apps.

Laravel Blade Sortable Demo Repo Installation You can install the package via composer: composer require asantibanez/laravel-blade-sortable After the

Andrés Santibáñez 370 Dec 23, 2022
Cagilo - a set of simple components for use in your views Laravel Blade.

Cagilo - a set of simple components for use in your views Laravel Blade. Official Documentation Documentation for Cagilo can be found on its we

Cagilo 151 Dec 6, 2022
A collection of pre-made simple Laravel Blade form components.

Laravel Form Components Library A collection of pre-made simple Laravel Blade form components. Installation & setup You can install the package via co

null 3 Oct 5, 2022
Provide all attributes (including irregular patterns) to Laravel Blade class components.

blade-wants-attributes blade-wants-attributes offers you the ability to use Blade/HTML-defined attributes within the constructors of Laravel Blade cla

Stephan Casas 4 Sep 15, 2022
This package allows you to render livewire components like a blade component, giving it attributes, slots etc

X-livewire This package allows you to render livewire components like a blade component, giving it attributes, slots etc. Assuming you wanted to creat

null 7 Nov 15, 2022
A set of filament components with extra functionality & fresh look

Filament Addons A set of filament components with extra functionality & fresh look Pills (Tab Pills) Coming Soon ... Support Filament Installation You

Bezhan Salleh 15 Dec 16, 2022
Blade Snip allows you to use parts of a blade template multiple times. Basically partials, but inline.

Blade Snip Blade Snip allows you to use parts of a blade template multiple times. Basically partials, but inline: <div class="products"> @snip('pr

Jack Sleight 18 Dec 4, 2022
A set of useful Laravel collection macros

A set of useful Laravel collection macros This repository contains some useful collection macros. Spatie is a webdesign agency based in Antwerp, Belgi

Spatie 1.5k Dec 31, 2022
A collection of useful traits for working with PHP 8.1 Enums

A library of helper traits for working with PHP 8.1 enums This package provides a series of traits that allows you to: RestorableFromName Trait Create

Mark Baker 24 Nov 24, 2022