Download the PHP package wbcodes/laravel-core without Composer
On this page you can find all versions of the php package wbcodes/laravel-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wbcodes/laravel-core
More information about wbcodes/laravel-core
Files in wbcodes/laravel-core
Package laravel-core
Short Description This websites site core console commands package
License MIT
Informations about the package laravel-core
Wbcod Core Laravel Package
This is the repo for the Wbcodes Core project. A Wbcodes Site package to use CRM in your laravel project simply.
Documentation
All documentation is available on the Wiki Pages. We encourage you to read it. If you are new start with the Installation Guide. To update the package consult the Updating Guide.
Requirements
The current package requirements are:
- Laravel >= 7.x
- PHP >= 7.3
Installation
To Install our package you can follow Steps in below.
Note: the next steps are valid for a fresh installation procedure, if you are updating the package, refers to the Updating section.
-
On the root folder of your Laravel project, require the package using composer:
-
(For Laravel 7+ only) If you want to install the authentication scaffolding, then require the
laravel/ui
package using composer:Note: it is a recommendation to read the Laravel Authentication Documentation for details about the authentication scaffolding.
-
install required package tables using the next commands:
-
publish vendor files from imtilak/laravel-core packege:
or you can extract you need fiels using --tag={name}
-
Add this code to ./routes/web.php file
-
Create data base and add database configruation to .env file
-
After than you should be run migrations using this command line:
Or you can use to command
And you can refresh data base using
Or you can fresh data base using
Finally, install the required package resources using the next command:
You can use --force option to overwrite existing files.
You can use --interactive option to be guided through the process and choose what you want to install.
Add This middleware to Http/Kernel.php as $routeMiddleware
use SiteUserTrait middleware to Http/Kernel.php as $routeMiddleware
Updating
-
First, update the package with the next composer command:
-
Then, update the required Wbcodes Site assets resources
Note: if you are using Wbcodes Site for Laravel 5.x and are upgrading to Laravel 6 version, first delete the folder Wbcodes Site inside your
public/vendor
directory.In order to publish the new Wbcodes Site assets, execute the next command:
-
If you have [published]() and modified the default
master.blade.php
file or any other view provided with this package, you may need to update them too. Please, note there could be huge updates on these views, so it is highly recommended to backup your files previosuly. To update the views, you may follow next steps:-
Make a copy (or backup) of the views you have modified, those inside the folder
resources/views/vendor/wbcodes/laravel-core
. -
Publish the new set of views, using the
--force
option to overwrite the existing files. - Compare the new installed views with your backup files and redo the modifications you previously did to those views.
-
-
From time to time, new configuration options may be added or default values may be changed, so it is also a recommendation to verify and update the package config file if needed. To update the configuration, you may follow next steps:
-
Make a copy (or backup) of your current package configuration file, the
config/site_core.php
file. -
Now, publish the new package configuration file and accept the overwrite warning (or use
--force
option to avoid the warning). - Compare with your backup configuration file and redo the modifications you previously made.
-
-
New helper functions may be added or modified, So it is also a recommendation to verify and update the package helper files if needed. To update the helpers, you may follow next steps:
-
Make a copy (or backup) of your current package helper files, the
config/site_core.php
file. -
Now, publish the new package helper files and accept the overwrite warning (or use
--force
option to avoid the warning). - Compare with your backup configuration file and redo the modifications you previously made.
-
Artisan Console Commands
This package provides some artisan commands in order to manage its resources. These commands are explained in the next sections. First, we going to give a little summary of the available resources, they are distinguished by a key name:
> php artisan sitecore:clear
> php artisan sitecore:create:list-option
> php artisan sitecore:module:create
> php artisan sitecore:remove:reports-drafts
> php artisan sitecore:update:permissions
> php artisan sitecore:sync
php artisan sitecore:clear
command will clear all of these (views, cache, config, route).
php artisan sitecore:create:list-option
command will create new list option.
php artisan sitecore:module:create
command will add new row to module table.
php artisan sitecore:remove:reports-drafts
command will be remove all draft reports which not saved.
php artisan sitecore:update:permissions
command will be update all permissions by removing don't used and create required permissions which not exists before.
php artisan sitecore:sync
.
comment: <> ()
Credits
- Zahir Hayrullah
- All Contributors
All versions of laravel-core with dependencies
illuminate/support Version ^7.3|^8.0
yajra/laravel-datatables-oracle Version ^9.18.1
spatie/laravel-permission Version ^5.5.5