This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Basics

Installs: 39

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:SCSS

1.0.0 2020-10-27 22:17 UTC

This package is auto-updated.

Last update: 2021-05-28 10:40:13 UTC


README

  • Helpers, functions, ...
  • Basic translations
  • Datatables translations
  • Abstract classes (Repository, Present ...)
  • Basic classes (Language)
  • Basic assets (datatables, jquery, ckeditor, ...)
  • Theme (core ui)
  • Basic views (layouts, errors)
  • Routes (admin, developer)
  • Middlewares (activityLogger, admin, developer, userLanguage)
  • Auth (notifications, password reset, register (web))
  • BladeService (@asterisk...)
  • Localizations (Countries, Districts, ...)

Management of Basics Tables

- Menu
- Application    
- Role
- Session
- User
- Variable
- Version
- State
- Country
- Disctrict
- Town
- Neighborhood
- PostalCode
- Area    

Installation

composer require amaiagalvez/b1

Usage

Configuration file in config/basics.php

php artisan vendor:publish --force   
choose the tag izt-basics-config

Assets in public/basics folder

php artisan vendor:publish   
choose the tag izt-basics-assets

gehitu webpack.mix.js fitxategian
mix.copyDirectory('resources/assets/basics', 'public/basics');

Translations in resources/lang folder (validation eta password hartzeko)

php artisan vendor:publish --force   
choose the tag izt-basics-lang

Views in resources/views/layouts folder

php artisan vendor:publish --force   
choose the tag izt-basics-views

aldatu basics::layout. => layout. 

New project

Delete:

  • Controllers/Auth
  • welcome.blade.php

Publish (izt-basics-help): (Hauek dira konfiguraziorako behar diren fitxategiak. Nonbaiten edukitzeko kopia on bat eta proiektu guztietan berdinak izateko.)

  • Exception/Handler
  • Config
  • Routes
  • Http/Kernel
  • Tests
  • composer.json

Layouts

app.blade.php => add application's asserts

Seeds

Migrations && Seeds take from de package (composer dump autoload)

To load data, add this in de DatabaseSeeder.php file

DB::statement('SET FOREIGN_KEY_CHECKS=0;');

$this->call(BasicsDatabaseSeeder::class);

DB::statement('SET FOREIGN_KEY_CHECKS=1');

Require

  • php 7.2
  • laravel 6
  • league/fractal
  • yajra/laravel-datatables
  • laravel/socialite

Emails

https://mailtrap.io (informatikaamaia@gmail.com // A...)

MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=ab64a4b34431cc MAIL_PASSWORD=a3157b1296cf3b MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=info@aretha.eus MAIL_FROM_NAME="${APP_NAME}"

Problems

  • artisan nola instalatu DUSK erabili ahal izateko
  • lang => validation eta password nola hartu paketetik zuzenean, publikatu gabe?
  • lang/validation/attributes => aplikazio guztienak hemen gehitu behar dira

Hobekuntzak

  • testeatu gehiago DataTables (ordena, bilatu)
  • select2 sartu
  • eremu dependienteak
  • rolen kudeaketa
  • select2 + berria gehitu