Skip to content

Make Sail Server compliant with Laravel 12 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from

Conversation

rogerio-pereira
Copy link

@rogerio-pereira rogerio-pereira commented Apr 17, 2025

Description

Make Sail Server compliant with Laravel 12

Steps to Run

Updated Sail docs (check last item of Implement/Fixes below)

Neccesary checkmarks:

[x] All Tests are Passing
[x] The code will run locally

Type of change

[x] New feature
[] Bug Fix

Implements/Fixes:

  • Enable Sail Server to run Laravel 12
  • Enable Service mongodb
  • Allow user to choose Starter Kit: react, vue, livewire orlivewire-class-components
  • Allow user to choose workos Authentication Provider
  • Allow User to choose Testing Framework phpunit or pest
  • Docs Updated PR

Check the correct boxes

[x] This broke nothing
[] This broke some stuff
[] This broke everything

Testing Changes

[] No Tests have been changed
[x] Some Tests have been changed
[] All of the Tests have been changed(Please describe what in the world happened)

Checklist:

[x] My code has no unused/commented out code
[x] I have reviewed my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have fully tested my code

New Tests

  • tests/Feature/Laravel12Test.php
  • tests/Feature/Laravel12FrontendTest.php
  • tests/Feature/Laravel12AuthTest.php
  • tests/Feature/Laravel12TestFrameworkTest.php

Updated Tests

  • tests/Feature/SailServerTest.php

@taylorotwell
Copy link
Member

I don't think this is a really user friendly way to start new projects these days so I'm tabling updates on it for now.

@rogerio-pereira
Copy link
Author

rogerio-pereira commented Apr 18, 2025

@taylorotwell any official way to use laravel 12 with docker?
on my work we aren't allowed to install anything on the machines (only docker and vscode, that comes pre installed on all dev machines)
i mean, i can still use my fork to do it, but not sure if the managers will be ok

the command is not that different, than it used to be, also it doesn't require any new argument, if running command
curl -s "https://laravel.build/example-app" | bash
it will include livewire, laravel auth provider, pest, and default services

it's required the arguments only if the developer wants a different stack
curl -s "https://laravel.build/example-app?with=mysql" | bash
curl -s "https://laravel.build/example-app?frontend=vue" | bash
curl -s "https://laravel.build/example-app?auth=workos" | bash
curl -s "https://laravel.build/example-app?tests=phpunit" | bash

lastly the arguments are combinable
curl -s "https://laravel.build/example-app?with=mysql&frontend=vue&tests=phpunit" | bash

@rogerio-pereira
Copy link
Author

In case anyone needs, here's my fork from laravel sail installer (spoiler alert, it works with laravel 12)
Laravel Sailor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants