larams / cms
Larams - Content Management System for Laravel 5+
Installs: 6 599
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/larams/cms
Requires
- php: ^7.2.5||^8.0.0
- ext-json: *
- ext-simplexml: *
- intervention/image: ~2.3
- intervention/imagecache: ~2.4
- laravel/framework: 5.*||6.*||7.*||8.*||9.*||10.*
- laravel/passport: ^9.3||^10.0||^11.0
- laravel/ui: 2.*||3.*||4.*
- tinify/tinify: ^1.5
- dev-master
- 2.0.61
- 2.0.60
- 2.0.59
- 2.0.58
- 2.0.57
- 2.0.56
- 2.0.55
- 2.0.54
- 2.0.53
- 2.0.52
- 2.0.51
- 2.0.50
- 2.0.49
- 2.0.48
- 2.0.47
- 2.0.46
- 2.0.45
- 2.0.44
- 2.0.43
- 2.0.42
- 2.0.41
- 2.0.40
- 2.0.39
- 2.0.38
- 2.0.37
- 2.0.36
- 2.0.35
- 2.0.34
- 2.0.33
- 2.0.32
- 2.0.31
- 2.0.30
- 2.0.29
- 2.0.28
- 2.0.27
- 2.0.26
- 2.0.25
- 2.0.24
- 2.0.23
- 2.0.22
- 2.0.21
- 2.0.20
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 1.6.18
- 1.6.17
- 1.6.16
- 1.6.15
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.49
- 1.5.48
- 1.5.47
- 1.5.46
- 1.5.45
- 1.5.44
- 1.5.43
- 1.5.42
- 1.5.41
- 1.5.40
- 1.5.39
- 1.5.38
- 1.5.37
- 1.5.36
- 1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.0.32
- 1.0.31
- 1.0.30
- 1.0.29
- 1.0.28
- 1.0.27
- 1.0.26
- 1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- 0.1.0
This package is auto-updated.
Last update: 2025-10-15 09:22:13 UTC
README
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
.envfile (if file is missing create one from.env.example) -
Delete
docker-compose.ymlfile (it is used for Laravel Sail) -
Delete migrations from
database/migrationsfrom year 2014 -
php artisan vendor:publishand select[10] ....\LaramsServiceProvider -
composer dump-autoload -
Modify
docker/httpd/vhosts.confand changeServerNamevariables to match yourXDEBUG_SERVER_NAMEvariable 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
publicfolder, createbower.jsonwith 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::classinconfig/auth.php -
Go to /admin link and try logging in with "dev" user and generated password
-
php artisan passport:install -
Change
config/auth.phpguards.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-excludeto 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
.envfile (if file is missing create one from.env.example) php artisan key:generatephp artisan migratephp artisan db:seed --class=StructureTypeSeederphp artisan db:seed --class=PermissionsTableSeederphp artisan db:seed --class=UsersTableSeederphp 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
CONTAINER_NAME_API=server-api
CONTAINER_NAME_DB=server-db
MYSQL_CONTAINER_PORT=3306
MYSQL_ROOT_PASSWORD=
XDEBUG_HOST=docker.for.mac.localhost # Used for mac
XDEBUG_HOST=172.17.0.1 # Used for docker in remote server
XDEBUG_SERVER_NAME=api.dev.domain.lt
Usage
- Create
resources/views/index.blade.phpfor title page - Create
resources/views/types/text.blade.phpfor each content type you need - You may use app/Providers/LayoutServiceProvider.php for common stuff that is used in layout
Sass
webpack.mix.jschangepostCsstosassnpm i sass-loader --savenpm i sass --save
Bower.json
{
"name": "bower_components",
"authors": [
"Tomas Talandis <tomas@talandis.lt>"
],
"description": "",
"main": "",
"moduleType": [],
"license": "MIT",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "~3.3.5",
"bootstrap-datepicker": "~1.5.0",
"ckeditor": "~4.5.4",
"dropzone": "~4.2.0",
"jquery": "~2.1.4",
"jquery-ui": "~1.11.4",
"jstree": "~3.2.1",
"slick-carousel": "^1.8.1",
"chosen": "^1.8.7"
}
}