Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;

class AppServiceProvider extends ServiceProvider
{
Expand All @@ -20,8 +19,6 @@ public function register(): void
*/
public function boot(): void
{
if(env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
//
}
}
8 changes: 2 additions & 6 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<IfModule mod_rewrite.c>
RewriteEngine On

# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Expand Down
5 changes: 1 addition & 4 deletions resources/views/components/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
<div class="container">
<div class="row py-3">
<div class="col d-flex justify-content-between align-items-center">
<a href="/" style="text-decoration: none; color: inherit;">
<h1 class="fw-semibold" style="color:#F26A21;">CookaVel</h1>

</a>
<h1 class="fw-semibold" style="color:#F26A21;">CookaVel</h1>
<a href="https://github.com/anonymousecode/cookavel" target="_blank">
<img src="{{ asset('images/github.png') }}" class="img-fluid" style="width:40px;" alt="GitHub">
</a>
Expand Down
11 changes: 0 additions & 11 deletions resources/views/recipe.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@
</div>
</div>
</div>

<div class="row mt-3">
<h3 class="text-secondary mb-2">Youtube</h3>
<div class=" bg-light">
@php
$youtube = $data['meals'][0]['strYoutube'];
$embedUrl = str_replace("watch?v=", "embed/", $youtube);
@endphp
<iframe class="card-img-top" width="50%" height="315" src="{{$embedUrl }}" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</x-slot>
</x-layout>
Expand Down