Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Update to work with l5.4 out the box #83

Merged
6 commits merged into from
Jun 12, 2017
Merged

Update to work with l5.4 out the box #83

6 commits merged into from
Jun 12, 2017

Conversation

jeremykenedy
Copy link
Contributor

@jeremykenedy jeremykenedy commented Jun 12, 2017

Debugged the service provider file, solved the issues reported regarding middleware and missing classes.
Moved routes.php to routes/web.php.
Updated artisan publish tag.
Added MIT license file.
Updated readme.
Bumped up the tag to 2.1 for packagist.

Tested as working on L5.4

Thank you for all the hard work!

@@ -14,7 +14,7 @@
"RachidLaasri\\LaravelInstaller\\": "src/"
},
"files": [
"src/functions.php"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it better to have this in the Helpers folder.

readme.md Outdated

## Installation
* [Laravel 5.1, 5.2, 5.3, 5.4 or newer](https://laravel.com/docs/installation)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to link the version numbers to different version of your package that will work with those if it arises.

readme.md Outdated
```
composer update
```bash
composer require rachidlaasri/laravel-installer
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it best to not have the user touch their composer.json and have this done and installed in swoop.

@@ -34,7 +34,6 @@
|
*/
'permissions' => [
'storage/app/' => '775',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This folder is no longer part of Laravel 5.3+ and will cause php function error on this.

@@ -24,21 +24,18 @@ class LaravelInstallerServiceProvider extends ServiceProvider
public function register()
{
$this->publishFiles();

$this->loadRoutesFrom(__DIR__.'/../routes.php');
$this->loadRoutesFrom(__DIR__.'/../routes/web.php');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved into routes folder to follow L5.3+ conventions and moved web routes to we.php file as well. This may be helpful in the future in the event you extend this to an api for whatever crazy reasons :)

CanInstall::class
]);
$router->middlewareGroup('install',[CanInstall::class]);
$router->middlewareGroup('update',[CanUpdate::class]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registered update middleware.
Removed un-needed RedirectInstall addition to web middleware.

@@ -50,18 +47,18 @@ protected function publishFiles()
{
$this->publishes([
__DIR__.'/../Config/installer.php' => base_path('config/installer.php'),
]);
], 'laravelinstaller');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added publishing tags to make much cleaner command line install and to solve other reported issues.

@@ -0,0 +1,46 @@
//colors
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added SASS for easy customizations.

@@ -0,0 +1,46 @@
//colors
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added SCSS for easy customizations.

@ghost ghost merged commit d4ea4e7 into rashidlaasri:master Jun 12, 2017
@ghost
Copy link

ghost commented Jun 12, 2017

This is looking amazing! Thanks!

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant