{"id":33203118,"url":"https://github.com/kossa/laralte2","last_synced_at":"2025-11-17T03:00:54.210Z","repository":{"id":70006214,"uuid":"60299781","full_name":"kossa/laralte2","owner":"kossa","description":"LaraLTE2, Laravel PHP Framework with AdminLTE2","archived":true,"fork":false,"pushed_at":"2017-12-01T06:27:55.000Z","size":10329,"stargazers_count":26,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-26T13:32:05.208Z","etag":null,"topics":["admin","adminlte","apidoc","laravel","php"],"latest_commit_sha":null,"homepage":"http://laralte2.bel4.com/admin","language":"JavaScript","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/kossa.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}},"created_at":"2016-06-02T21:51:51.000Z","updated_at":"2024-03-26T11:58:43.000Z","dependencies_parsed_at":"2023-02-23T03:30:40.758Z","dependency_job_id":null,"html_url":"https://github.com/kossa/laralte2","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kossa/laralte2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kossa%2Flaralte2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kossa%2Flaralte2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kossa%2Flaralte2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kossa%2Flaralte2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kossa","download_url":"https://codeload.github.com/kossa/laralte2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kossa%2Flaralte2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284813088,"owners_count":27067232,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["admin","adminlte","apidoc","laravel","php"],"created_at":"2025-11-16T09:00:32.855Z","updated_at":"2025-11-17T03:00:54.200Z","avatar_url":"https://github.com/kossa.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Boilerplate/Customized Configurations"],"readme":"# LaraLTE2\n**_[Laravel](https://laravel.com/) PHP Framework with [AdminLTE2](https://almsaeedstudio.com/AdminLTE)_**  \n\n\nWhenever I start a new Laravel project, I do the same thing; Install packages, download Javascript plugins...etc.  \nThis repository helps me bootstrap  all of that.\n\n\n**Note:**  ***if you want to use Laravel [5.2](https://github.com/kossa/laralte2/tree/5.2),  [5.3](https://github.com/kossa/laralte2/tree/5.3), [5.4](https://github.com/kossa/laralte2/tree/5.4) please checkout to branch***\n\n## Setup:\nAll you need is to run these commands:\n```bash\ngit clone https://github.com/kossa/laralte2.git\ncd laralte2 \ncomposer install                   # Install backend dependencies\nsudo chmod 777 storage/ -R         # Chmod Storage\ncp .env.example .env               # Update database credentials configuration\nphp artisan key:generate           # Generate new keys for Laravel\nphp artisan migrate:refresh --seed # Run migration and seed users and categories for testing\nyarn install                       # Install node dependencies\nnpm run production                 # To compile assets for prod\n```\n\n\n## Demo:\n- Online demo: Can be found at [laralte2.bel4.com/admin](http://laralte2.bel4.com/admin)\n- Local demo:  \n`php artisan serve                  # Check installation (optional)`  \nOpen browser at [localhost:8000/admin](http://localhost:8000/admin) \n\n**Note:**  \nUsername: test@example.com  \nPassword: 123456\n\n\u003e All the data are reset each 30mn ;) \n\u003e **please d'ont forget to remove [this](https://github.com/kossa/laralte2/blob/master/app/Console/Kernel.php#L27-L28) function in your app** \n\n***\n\n## Included Packages:\n#### Laravel (php):\n\n* [Laravel Framework](https://github.com/laravel/laravel/) (5.4.*)\n* [Forms \u0026 HTML](https://github.com/laravelcollective/html) : for forms\n* [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar) : for debugging\n* [Intervention Image](https://github.com/intervention/image) : image handling and manipulation\n* [Guzzle](https://github.com/guzzle/guzzle) : PHP HTTP client\n* [Laravel RESTful API format](https://github.com/teepluss/laravel-restable) : To create Rest API\n* [Redis](https://github.com/nrk/predis.git) : for chache\n\n#### JS plugins:\nLaraLTE2 uses : \n\n* [Laravel Mix](laravel-mix)\n* [AdminLTE](https://github.com/almasaeed2010/AdminLTE)\n* [AdminLTE-RTL](https://github.com/morteza/bootstrap-rtl) for RTL support\n* [ApiDocs](https://github.com/apidoc/apidoc)\n* [Ionicons](https://github.com/driftyco/ionicons)\n* [bootstrap](https://github.com/twbs/bootstrap)\n* [chosen](https://github.com/harvesthq/bower-chosen)\n* [ckeditor Full](https://github.com/ckeditor/ckeditor-releases)\n* [datatables + plugins](https://github.com/DataTables/DataTables)\n* [datetimepicker](https://github.com/xdan/datetimepicker)\n* [font-awesome](https://github.com/FortAwesome/Font-Awesome)\n* [jquery](https://github.com/jquery/jquery)\n* [sweetalert2](https://github.com/limonte/sweetalert2)\n* [iCheck](https://github.com/fronteed/iCheck)\n* [Axios](https://github.com/mzabriskie/axios)\n* [VueJs](http://vuejs.org/)\n* [Turbolinks](https://github.com/turbolinks/turbolinks)\n\n\n## Page size optimization:\n- Using [Laravel Mix](http://laravel.com/docs/master/mix), all CSS and JS are in minified to one file each.\n- LaraLTE2 leverages browser caching, using `.htaccess` file from [html5-boilerplate](https://github.com/h5bp/html5-boilerplate)\n- GZip compression is activated by default(APP_DEBUG=false =\u003e only onfile for js, and one file for css).  \n  - `admin-HASH.css`: 63.9KB with gzip (376.5Kb without)  \n  - `admin-HASH.js` : 99KB with gzip (318.9Kb without)\n\n*__Note:__ If you're using Nginx check: [server-configs-nginx](https://github.com/h5bp/server-configs-nginx)*\n\n![alt text](http://storage2.static.itmages.com/i/16/0602/h_1464877446_8945299_e45f066c58.png \"Logo Title Text 1\")\n\n### REST API\nAs you may see in included packages, I used [ApiDocs](http://apidocjs.com/) to document all routes in `api/v1` and controllers in `Api` namespace.\nYou can check the docs at [laralte2.bel4.com/api](http://laralte2.bel4.com/api/)\n\n*__Note:__ The API is protected by token, so when you send a request you should include `APP-TOKEN` in the header, this value will be compared to `APP_TOKEN` in `.env` file check [this middleware](https://github.com/kossa/laralte2/blob/master/app/Http/Middleware/ApiToken.php#L21)*\n\n\n#FAQ\n\n#### Create new CRUD\nCreating CRUD in your application is the job you do most. Let's create Post CRUD:\n\n* Add new migration and model : `php artisan make:model Post -m`\n* Open migration file and add your columns\n* Create PostsController : `php  artisan make:controller`. fill your resource (you can use CategoriesController with some changes) or, if you are a lazy developer like me, use a [snippet](https://github.com/kossa/st-snippets/blob/master/kossa_php/Laravel/lcontroller.sublime-snippet) and make only 2 changes\n* Duplicate `resource/views/admin/categories` folder to `posts`, make changes in `index.php`, `create.blade.php`, `edit.blade.php`\n\n#### Move Image and file ?\nTo move images im using a [helper](https://github.com/kossa/laralte2/blob/master/app/Http/helpers.php#L4) function based on [intervention/image](https://github.com/intervention/image) and [variables.php](https://github.com/kossa/laralte2/blob/master/config/variables.php#L15) \nyou can check full example in [User.php](https://github.com/kossa/laralte2/blob/master/app/User.php#L73)\n\n\n#### Do you need RTL support ?\n* Copy/paste \"rtl-dependencies\" into \"dependencies\" [section](https://github.com/kossa/laralte2/blob/master/package.json#L33-L34)\n* Change all `pull-right` to `pull-left` in [default](https://github.com/kossa/laralte2/blob/master/resources/views/admin/default.blade.php) file and vise versa\n* Uncomment this [line](https://github.com/kossa/laralte2/blob/master/webpack.mix.js#L26) in webpack.mix.js\n* Run: `yarn upgrade \u0026\u0026 npm run dev`, you're ready to go ;)\n\n![alt text](http://storage9.static.itmages.com/i/17/0202/h_1486034161_6556436_4956bfbe09.png \"Logo Title Text 1\")\n\n\n#### Create new REST API \nRest Controllers are in the `App\\Http\\Controllers\\Api` namespace.\n\n* Create new controller that extends `ApiController` class\n* Add your route in `api/v1` route group\n* Add documentation block ([documentation](http://apidocjs.com/#example-full))\n* Install ApiDoc via npm, run: `npm install apidoc -g` (only first time)\n* Run this command : `apidoc -i app/Http/Controllers/Api/ -o public/api/ -t resources/apiTemplate/`\n* That's all :)\n\n#### Do you have question ?\nNot hesitate, [open](https://github.com/kossa/laralte2/issues/new) new issue ;)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkossa%2Flaralte2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkossa%2Flaralte2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkossa%2Flaralte2/lists"}