在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):guillaumebriday/laravel-blog开源软件地址(OpenSource Url):https://github.com/guillaumebriday/laravel-blog开源编程语言(OpenSource Language):PHP 81.8%开源软件介绍(OpenSource Introduction):Laravel 9.0 blogThe purpose of this repository is to show good development practices on Laravel as well as to present cases of use of the framework's features like:
Beside Laravel, this project uses other tools like:
Some screenshotsYou can find some screenshots of the application on : https://imgur.com/a/Jbnwj InstallationDevelopment environment requirements : Setting up your development environment on your local machine : $ git clone https://github.com/guillaumebriday/laravel-blog.git
$ cd laravel-blog
$ cp .env.example .env
$ composer install
$ vagrant up
$ vagrant ssh All following commands must be run inside the VM: $ cd code
$ yarn install
$ artisan key:generate
$ artisan horizon:install
$ artisan telescope:install
$ artisan storage:link Now you can access the application via http://localhost:8000. There is no need to run Before startingYou need to run the migrations with the seeds : $ artisan migrate --seed This will create a new user that you can use to sign in : email: [email protected]
password: 4nak1n And then, compile the assets : $ yarn dev # or yarn watch Starting job for newsletter : $ artisan tinker
> PrepareNewsletterSubscriptionEmail::dispatch(); Useful commandsSeeding the database : $ artisan db:seed Running tests : $ artisan test Running Laravel Pint : $ ./vendor/bin/pint --verbose --test Generating backup : $ artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
$ artisan backup:run Generating fake data : $ artisan db:seed --class=DevDatabaseSeeder Discover package $ artisan package:discover In development environnement, rebuild the database : $ artisan migrate:fresh --seed Accessing the APIClients can access to the REST API. API requests require authentication via token. You can create a new token in your user profile. Then, you can use this token either as url parameter or in Authorization header : # Url parameter
GET http://laravel-blog.app/api/v1/posts?api_token=your_private_token_here
# Authorization Header
curl --header "Authorization: Bearer your_private_token_here" http://laravel-blog.app/api/v1/posts API are prefixed by Do not forget to set the To list all the available routes for API : $ artisan route:list --path=api ContributingDo not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome. LicenseThis project is released under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论