{"id":26871207,"url":"https://github.com/codeadamca/laravel-blade-cms","last_synced_at":"2025-05-07T06:29:20.752Z","repository":{"id":115328316,"uuid":"449830208","full_name":"codeadamca/laravel-blade-cms","owner":"codeadamca","description":"A basic CMS using PHP, Laravel, and Blade.","archived":false,"fork":false,"pushed_at":"2025-01-26T22:10:47.000Z","size":1967,"stargazers_count":1,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T07:18:42.940Z","etag":null,"topics":["blade","cms","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeadamca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-19T19:36:04.000Z","updated_at":"2025-01-26T22:10:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8bb5919-d709-420b-ab54-9f39f3e72804","html_url":"https://github.com/codeadamca/laravel-blade-cms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Flaravel-blade-cms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Flaravel-blade-cms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Flaravel-blade-cms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeadamca%2Flaravel-blade-cms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeadamca","download_url":"https://codeload.github.com/codeadamca/laravel-blade-cms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252826491,"owners_count":21810121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blade","cms","laravel","php"],"created_at":"2025-03-31T07:18:46.685Z","updated_at":"2025-05-07T06:29:20.737Z","avatar_url":"https://github.com/codeadamca.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel CMS using Blade Views\n\nThis repository is a copy of the simple [PHP/Laravel CMS](https://github.com/codeadamca/php-cms-laravel) except the CMS views have been converted from vanilla PHP to Blade.\n\nFor these instructions I'm going to us MAMP as my development environment. But you could upload this application to a host, deploy using Docker, or the Laravel built in server.\n\n## Windows\n\nA few notes For Windows Machines:\n\n1. A Laravel application deploy locall on MAMP seems to have problems running on a Windows computer inside the ```OneDrive``` folder. Make sure your project folder is outside of your ```OneDrive``` folder.\n\n2. When PHP is downloaded for Windows, the ```php.ini``` file will default to having ```fileinfo```, ```zip```, and ```pdo_mysql``` disabled. You may need to anable these inside the ```php.ini``` file. This file is likely located at ```c:/PHP/php.ini```. Open this file and make the following changes:\n\n    Enable the following three lines:\n\n    ```\n    ;extension=pdo_mysql\n    ;extension=fileinfo\n    ;extension=zip\n    ```\n\n    And remove the semi-colon:\n\n    ```\n    extension=pdo_mysql\n    extension=fileinfo\n    extension=zip\n    ```\n\n## Setup\n\nTo set up this CMS follow these steps:\n\n1. Using your Terminal (or Git Bash on Windows), navigate to your working folder:\n\n    ```\n    $ cd \u003cFOLDER_NAME\u003e\n    $ ls\n    ```\n\n    Note: On a Wiindows machine use ```dir``` to view the files in the current folder:\n\n    ```\n    $ dir\n    ```\n\n2. Clone this repo:\n\n    ```\n    $ git clone https://github.com/codeadamca/laravel-blade-cms.git\n    ```\n\n3. Using the Terminal, use ```ls``` on a Mac ot ```dir``` on a Windows machine to view the files in the current directory:\n\n    ![Listing Files](_readme/screenshot-list.png)\n\n    You should now see a folder named ```laravel-blade-cms```. Change the present working directory to your new folder:\n\n    ```\n    $ cd laravel-blade-cms\n    ```\n\n4. Using the Terminal (or Git Bash), run ```composer update```:\n\n    ```\n    $ composer update\n    ```\n\n5. We need to setup the database connection. \n\n    Using MAMP and phpMyAdmin, create a new databse. \n\n    Make a copy the ```.env.sample``` file and name it ```.env```. Update the new ```.env``` file with your database credentials:\n\n    ```php\n    DB_CONNECTION=mysql\n    DB_HOST=127.0.0.1\n    DB_PORT=3306\n    DB_DATABASE=\u003cDATABASE_NAME\u003e\n    DB_USERNAME=root\n    DB_PASSWORD=root\n    ```\n\n    On a Mac I also need to define the socket. Under ```DB_PASSWORD``` I'm going to add:\n\n    ```php\n    DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock\n    ```\n\n    Your socket setting may be different. When your MAMP server is up and running, open the MAMP start page (http://:8888/MAMP), go to the MySQL tab, and your socket location will be listed:\n\n    ![MAMP Socket](_readme/screenshot-mamp-socket.png)\n\n    The database setup included with this applications includes migrations and seeding. Run the following command to create the required tables and seed them with testing data:\n\n    ```\n    $ php artisan migrate:refresh --seed\n    ```\n\n6. Update your ```.env``` file to use the ```public``` file system:\n\n    ```php\n    FILESYSTEM_DRIVER=public\n    ```\n\n    And then run this command using the Terminal:\n\n    ```\n    $ php artisan storage:link\n    ```\n\n7. Opne up your MAMP preferences and set the document root to the ```public``` folder in your ```laravel-blade-cms``` folder:\n\n    ![Root Folder](_readme/screenshot-mamp.png)\n\n    Restart MAMP. \n\n8. Using a Terminal, create an app key:\n\n    ```\n    php artisan key:generate\n    ```\n\n## Test\n\nTo view the public front end go to http://localhost:8888/ on a Mac or http://localhost/ on a Windows machine. This may be different based on your MAMP configuration. \n\nTo log in to the admin, use the URL http://localhost:8888/console/login on a Mac or http://localhost/console/login on a Windows machine. This may be different based on your MAMP configuration. \n\nYou will need to look up the email addresses in the ```user``` table and the default password is \"password\".\n\n\u003e Full tutorial URL:    \n\u003e https://codeadam.ca/learning/php-cms-laravel.html\n\n***\n\n## Repo Resources\n\n* [Visual Studio Code](https://code.visualstudio.com/)\n* [Laravel](https://laravel.com/)\n\n\u003cbr\u003e\n\u003ca href=\"https://codeadam.ca\"\u003e\n\u003cimg src=\"https://cdn.codeadam.ca/images@1.0.0/codeadam-logo-coloured-horizontal.png\" width=\"200\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Flaravel-blade-cms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeadamca%2Flaravel-blade-cms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeadamca%2Flaravel-blade-cms/lists"}