Download the PHP package larams/cms without Composer
On this page you can find all versions of the php package larams/cms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor larams
Package cms
Short Description Larams - Content Management System for Laravel 5+
License MIT
Package cms
Short Description Larams - Content Management System for Laravel 5+
License MIT
Please rate this library. Is it a good library?
Informations about the package cms
Larams - Content Management System for Laravel
Installation
There are two ways to create new project. If you just create new git repository start with clean installation. If you have cloned from git repo with existing sources continue with the second method.
1. Clean installation
You might need to add COMPOSER_MEMORY_LIMIT=-1
before all composer commands
composer create-project --prefer-dist laravel/laravel {{project_folder}}
composer require larams/cms
- Enter DB logins in
.env
file (if file is missing create one from.env.example
) - Delete
docker-compose.yml
file (it is used for Laravel Sail) - Delete migrations from
database/migrations
from year 2014 php artisan vendor:publish
and select[10] ....\LaramsServiceProvider
composer dump-autoload
- Modify
docker/httpd/vhosts.conf
and changeServerName
variables to match yourXDEBUG_SERVER_NAME
variable in .env file - If you are using docker on remote server, follow guide below
- Create empty database with Sequel Pro or any other tool
php artisan migrate
php artisan db:seed --class=StructureTypeSeeder
php artisan db:seed --class=PermissionsTableSeeder
php artisan db:seed --class=UsersTableSeeder
php artisan db:seed --class=StructureItemSeeder
- If you need admin interface: Go to
public
folder, createbower.json
with content below and runbower install
- If you are using standard cms:
Add cms middleware classes for "web" in
app/Http/Kernel.php
\Larams\Cms\Http\Middleware\LocaleDetection::class, \Larams\Cms\Http\Middleware\LayoutBuilder::class
- Add middlewares to routeMiddleware
'auth.user' => \App\Http\Middleware\Authenticate::class, 'auth.admin' => \App\Http\Middleware\Authenticate::class, 'auth.custom' => \Larams\Cms\Http\Middleware\AuthenticateApi::class,
- Change user model to
\Larams\Cms\Model\User::class
inconfig/auth.php
-
Go to /admin link and try logging in with "dev" user and generated password
-
php artisan passport:install
- Change
config/auth.php
guards.api.driver topassport
Docker setup on remote server
- Delete
storage/..
anddocker/..
folders in.rsync-exclude
- Run
autosync {project_folder}
- Run
xdebug
- Enter project folder
/srv/www/{project_folder}
- Run
docker-compose up -d
- Restore
.rsync-exclude
to its previous state - Run
docker exec -it {container_name} bash
- Return to previous list where you left off and continue with next commands in docker
2. When cloning git repository
- Clone files
- Enter project folder and run
composer install --no-scripts
- Enter DB logins in
.env
file (if file is missing create one from.env.example
) php artisan key:generate
php artisan migrate
php artisan db:seed --class=StructureTypeSeeder
php artisan db:seed --class=PermissionsTableSeeder
php artisan db:seed --class=UsersTableSeeder
php artisan db:seed --class=StructureItemSeeder
- Go to root project folder and run
npm install
- Go to sample.domain.com/admin link and try logging in with "dev" user and standard password
Additional .env variables
Usage
- Create
resources/views/index.blade.php
for title page - Create
resources/views/types/text.blade.php
for each content type you need - You may use app/Providers/LayoutServiceProvider.php for common stuff that is used in layout
Sass
webpack.mix.js
changepostCss
tosass
npm i sass-loader --save
npm i sass --save
Bower.json
All versions of cms with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2.5||^8.0.0
laravel/framework Version 5.*||6.*||7.*||8.*||9.*||10.*
laravel/ui Version 2.*||3.*||4.*
laravel/passport Version ^9.3||^10.0||^11.0
intervention/image Version ~2.3
intervention/imagecache Version ~2.4
tinify/tinify Version ^1.5
ext-json Version *
ext-simplexml Version *
laravel/framework Version 5.*||6.*||7.*||8.*||9.*||10.*
laravel/ui Version 2.*||3.*||4.*
laravel/passport Version ^9.3||^10.0||^11.0
intervention/image Version ~2.3
intervention/imagecache Version ~2.4
tinify/tinify Version ^1.5
ext-json Version *
ext-simplexml Version *
The package larams/cms contains the following files
Loading the files please wait ....