2017 © Pedro Peláez
 

library titan

Useful classes you can use for every Laravel project

image

bpocallaghan/titan

Useful classes you can use for every Laravel project

  • Thursday, July 12, 2018
  • by bpocallaghan
  • Repository
  • 4 Watchers
  • 10 Stars
  • 2,077 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 31 Versions
  • 16 % Grown

The README.md

Titan

A Laravel Website and Admin Framework for your everyday Websites build in Laravel. This project is the core framework for Laravel Starter. Please check this out for the detailed Features list and more., (*1)

Test Driven Development

  • titan-starter
  • I have started from scratch with a new test driven version. The end goal is to focus on TDD, more generic and easier to customize and help speed up your website development.

Preview project here - User: github@bpocallaghan.ie - Password: github, (*2)

Titan is nicely packaged for you so that you only have to do the following; - install laravel - composer require titan package - *create database - *setup virtual host/ host file - run titan:setup command - run titan:install command - run titan:migrate command (optional) - *open browser, (*3)

Then you have your Titan Admin Starter project with all the features ready to start your coding., (*4)

Installation

Update your project's composer.json file., (*5)

composer require bpocallaghan/titan
php artisan titan:setup

It will do the following: - php artisan titan:publish --files=website - Update app\User.php - Update routes\web.php - Update app\Http\Kernel.php - Update app\Http\Handler.php - Update config\app.php, (*6)

php artisan titan:install

It will do the following: - Update .env - php artisan migrate - php artisan titan:db:seed - php artisan titan:publish --files=auth, (*7)

bash php artisan titan:migrate --name= It will do the following: - Specify the 'table types' you would like to migrate - blog, documents, faq, locations, news, newsletter_subscribers, photos, testimonials, shop, (*8)

bash (Optional) Mail Layout php artisan vendor:publish --tag=laravel-notifications Mail Component php artisan vendor:publish --tag=laravel-mail It will publish the mail blade files to your project for you to edit., (*9)

Installation steps in Detail

php artisan migrate

This will create the 'core/minimum' tables needed (users table will be altered). You can run php artisan migrate --name=blog to include the migration tables., (*10)

php artisan titan:db:seed

This will seed the core tables to get started - roles - banners - pages - navigation_admin, (*11)

bash php artisan titan:publish --files=website This will copy all Website related files to your application. - views, controllers and database seeds - webpack.mix.js and packages.json - resource/assets and public/assets (css, js, fonts, images), (*12)

Open routes\web.php and uncomment the home route., (*13)

Open app\Http\Kernel.php and add the below to the end of $routeMiddleware list., (*14)

'role'       => \Bpocallaghan\Titan\Http\Middleware\ValidateRole::class,
'auth.admin' => \Bpocallaghan\Titan\Http\Middleware\AuthenticateAdmin::class,

This is to register the Admin Middlewares - AuthenticateAdmin - If the user logging in has the admin role. - ValidateRole - Admin users can have multiple roles, filter the navigation on those roles., (*15)

Commands

The publish commands are used to copy the files from titan to your own application for customization. For example, you need to add or change a field in a table or update text or design in blade files., (*16)

php artisan titan:publish --files=app
php artisan titan:publish --files=assets
php artisan titan:publish --files=auth
php artisan titan:publish --files=banner
php artisan titan:publish --files=config
php artisan titan:publish --files=database
php artisan titan:publish --files=events
php artisan titan:publish --files=helpers
php artisan titan:publish --files=pages
php artisan titan:publish --files=public
php artisan titan:publish --files=routes
php artisan titan:publish --files=website
php artisan titan:publish --files=app

This will copy all Models, Views and Controllers to your application. This will also copy all routes and RouteServiceProvider to your application., (*17)

php artisan titan:publish --files=assets

This will copy all assets (css, js, fonts, images) and webpack.js, package.json to your application., (*18)

php artisan titan:publish --files=auth

This will copy all Auth related Models, Views and Controllers to your application., (*19)

php artisan titan:publish --files=banner

This will copy all Banner related Models, Views and Controllers to your application., (*20)

php artisan titan:publish --files=config

This will copy the config file of titan to your application. You can change the admin skin (blue, red, green, etc), (*21)

php artisan titan:publish --files=database

This will copy the database/seeds and database/migrations to your application., (*22)

php artisan titan:publish --files=events

This will copy all Events, Listeners, Mails and Notifications to your application., (*23)

php artisan titan:publish --files=helpers

This will copy all Helpers, and HelperServiceProvider to your application., (*24)

php artisan titan:publish --files=public

This will copy all public (compiled css, js and also fonts and images) to your application., (*25)

php artisan titan:publish --files=routes

This will copy all routes, and RouteServiceProvider to your application., (*26)

php artisan titan:publish --files=website

This will copy all Website related files to your application (views, controllers, assets)., (*27)

Note: If you are not going to run php artisan titan:publish --files=routes, remember to add the routes to your application., (*28)

TODO

  • install command, remove laravel installed files (public/svg)
  • create config file (don't load routes, etc)

create new packages for - *banners - *activity - *google analytics - and more, (*29)

The Versions

12/07 2018

dev-master

9999999-dev

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

12/07 2018

0.2.11

0.2.11.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

19/01 2018

0.2.10

0.2.10.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

26/10 2017

0.2.9

0.2.9.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

14/10 2017

0.2.8

0.2.8.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

09/10 2017

0.2.7

0.2.7.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

02/08 2017

0.2.6

0.2.6.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

14/07 2017

0.2.5

0.2.5.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

10/07 2017

0.2.4

0.2.4.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

26/06 2017

0.2.3

0.2.3.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

26/06 2017

0.2.2

0.2.2.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

22/06 2017

0.2.1

0.2.1.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

21/06 2017

0.2.0

0.2.0.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

20/04 2017

0.1.7

0.1.7.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

14/03 2017

0.1.6

0.1.6.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

28/02 2017

0.1.5

0.1.5.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

28/02 2017

0.1.4

0.1.4.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

27/10 2016

0.1.3

0.1.3.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

18/10 2016

0.1.2

0.1.2.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

18/10 2016

0.1.1

0.1.1.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

24/09 2016

dev-L5.2

dev-L5.2

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

24/09 2016

0.1.0

0.1.0.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

08/05 2016

0.0.9

0.0.9.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

25/04 2016

0.0.8

0.0.8.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

21/04 2016

0.0.7

0.0.7.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

21/04 2016

0.0.6

0.0.6.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

14/04 2016

0.0.5

0.0.5.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

13/04 2016

0.0.4

0.0.4.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

12/04 2016

0.0.3

0.0.3.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

07/04 2016

0.0.1

0.0.1.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan

07/04 2016

0.0.2

0.0.2.0

Useful classes you can use for every Laravel project

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel helpers models traits controllers titan