2017 © Pedro Peláez
 

library helpers

Snippets, tools, views for Laravel 5.4 app

image

unrulynatives/helpers

Snippets, tools, views for Laravel 5.4 app

  • Thursday, January 18, 2018
  • by UnrulyNatives
  • Repository
  • 1 Watchers
  • 1 Stars
  • 318 Installations
  • CSS
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 41 Versions
  • 0 % Grown

The README.md

laravel-helper

A set of code snippets and functions to use across all projects., (*1)

This package contains some modifications made over a fresh installation of Laravel >= 5.3., (*2)

With time, this package would contain all modifications of the bare Laravel app. In other words, as soon as you include this package in your composer.json, you will get fully working starter kit., (*3)

Current version: Latest Stable Version, (*4)

Features

  • Gravatar for your User model, (*5)

  • some usefull css and jQuery tools included. See the DEMO in Starter kit for details and examples: http://dev.unrulynatives.com/feature, (*6)

Installation

  1. Add "unrulynatives/helpers": "^1.0" to your composer.json file., (*7)

  2. Add this to your config/app.php file in packages section Unrulynatives\Helpers\HelpersServiceProvider::class,, (*8)

  3. Publish views, css & jQuery files to your app:, (*9)

php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --force, (*10)

Should you wish to publish to app folder only selected resources, use these commands:, (*11)

  • public assets (js, css) php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=publicassets --force, (*12)

  • app files: Controllers, route files, Models php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=app --force, (*13)

  • app files: View files php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=views --force, (*14)

WARNING: - app files: View files to be copied to resources/views/layouts/ folder php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=viewslayouts --force, (*15)

  • migration files php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=migrations --force, (*16)

  • seed files php artisan vendor:publish --provider="Unrulynatives\Helpers\HelpersServiceProvider" --tag=seeds --force, (*17)

  1. Register the package in your User model and wherever you see it is necessary - see features section.

In your User model: `use Unrulynatives\Helpers\UserExtensions;, (*18)

class User extends Authenticatable {, (*19)

use UserExtensions;`, (*20)

  1. Register trait in other models In your model file declare: `use Unrulynatives\Helpers\ModelExtensions;

class [your-model-name-goes-here] extends Authenticatable {, (*21)

use ModelExtensions;`, (*22)

  1. You need to register the routes defined in this package. Open \app\Providers\RouteServiceProvider.php and
  • add $this->mapUnstarterRoutes(); to the map() function and
  • add the below code at the bottom of mapWebRoutes() fucntion:
    protected function mapUnstarterRoutes()
    {
        Route::group([
            'middleware' => 'web',
            'namespace' => $this->namespace,
        ], function ($router) {
            require base_path('unstarter/routes/unstarter.php');
        });
    }

Done!

Now you can check if the package works. Point your browser to unrulyhelpers. You should see a clock - an example developed along Laraveldaily tutorial http://laraveldaily.com/how-to-create-a-laravel-5-package-in-10-easy-steps/, (*23)

To do (Future features)

Example usage

  1. To get Gravatar assigned to authenticated user's e-mail use <img src="{{Auth::user()->gravatar}}">

The Versions

18/01 2018

dev-master

9999999-dev

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

18/01 2018

1.1.14

1.1.14.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

23/11 2017

1.1.13

1.1.13.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

17/08 2017

1.1.12

1.1.12.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2017

1.1.10

1.1.10.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2017

1.1.11

1.1.11.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2017

1.1.9

1.1.9.0

Snippets, tools, views for Laravel > 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2017

1.1.8

1.1.8.0

Snippets, tools, views for Laravel > 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2017

1.1.7

1.1.7.0

Snippets, tools, views for Laravel > 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

24/04 2017

1.1.6

1.1.6.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

23/04 2017

1.1.5

1.1.5.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

23/04 2017

1.1.4

1.1.4.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

23/04 2017

1.1.3

1.1.3.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

21/02 2017

1.1.1

1.1.1.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

21/02 2017

1.1.2

1.1.2.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

05/02 2017

1.1.0

1.1.0.0

Snippets, tools, views for Laravel 5.4 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

19/12 2016

1.0.2

1.0.2.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

15/12 2016

1.0.1

1.0.1.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

29/09 2016

1.0.0

1.0.0.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/09 2016

0.2.2

0.2.2.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/09 2016

0.2.1

0.2.1.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/09 2016

0.2.0

0.2.0.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/09 2016

0.1.6

0.1.6.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

09/09 2016

0.1.5

0.1.5.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

07/09 2016

0.1.4

0.1.4.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

06/09 2016

0.1.3

0.1.3.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

06/09 2016

0.1.2

0.1.2.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

06/09 2016

0.1.1

0.1.1.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

03/09 2016

0.1.0

0.1.0.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

03/09 2016

0.0.14

0.0.14.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

03/09 2016

0.0.13

0.0.13.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

03/09 2016

0.0.12

0.0.12.0

Snippets, tools, views for Laravel 5.3 app

  Sources   Download

The Requires

 

by Piotr Plebaniak

30/08 2016

0.0.9

0.0.9.0

Upvote and downvote system for Laravel

  Sources   Download

The Requires

 

by Piotr Plebaniak

29/08 2016

0.0.8

0.0.8.0

Upvote and downvote system for Laravel

  Sources   Download

The Requires

 

by Piotr Plebaniak

26/08 2016

0.0.7

0.0.7.0

Upvote and downvote system for Laravel

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/08 2016

0.0.6

0.0.6.0

Upvote and downvote system for Laravel

  Sources   Download

The Requires

 

by Piotr Plebaniak

14/08 2016

0.0.5

0.0.5.0

Upvote and downvote system for Laravel

  Sources   Download

The Requires

 

by Piotr Plebaniak

13/08 2016

0.0.4

0.0.4.0

Upvote and downvote system for Laravel

  Sources   Download

by Piotr Plebaniak

09/08 2016

0.0.3

0.0.3.0 https://development.unrulynatives.com

Laravel 5 helpers to use across all Laravel projects

  Sources   Download

MIT

The Development Requires

by Piotr Plebaniak

laravel helper laravel5

09/08 2016

0.0.2

0.0.2.0 https://development.unrulynatives.com

Laravel 5 helpers to use across all Laravel projects

  Sources   Download

MIT

The Development Requires

by Piotr Plebaniak

laravel helper laravel5

07/06 2016

0.0.1

0.0.1.0 https://development.unrulynatives.com

Laravel 5 helpers to use across all Laravel projects

  Sources   Download

MIT

The Development Requires

by Piotr Plebaniak

laravel helper laravel5