skip to Main Content

Github Action fails on Laravel project

That's my .yaml file name: Laravel on: push: branches: [ "main" ] pull_request: branches: [ "main" ] jobs: laravel-tests: runs-on: ubuntu-latest steps: - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e with: php-version: '8.1' - uses: actions/checkout@v3 - name: Copy .env run: php -r "file_exists('.env') ||…

VIEW QUESTION

Php versions – Laravel Mail::send fails to authenticate on the server but works locally

At some point recently the Mail::send function stopped working on our Laravel server. It still works when it's run locally though. Mail::send( 'emails.hello', $data, function ($message) use ($data) { $message->from('[email protected]', 'Admin'); $message->to('[email protected]', 'Admin') ->replyTo($data['email'], $data['name']) ->subject('Contact Request'); } ); The…

VIEW QUESTION

Laravel date validation erroring for string "today"

I'm using laravel validation for a date field like this: Validator::make($shipment, [ 'collection_date' => 'required|date', ... and I'm sending json with this field: "collection_date": "today", It's giving this error: { "collection_date": [ "The collection date is not a valid date."…

VIEW QUESTION
Back To Top
Search