Open acacha opened 3 years ago
<?php
namespace Laravel\Jetstream\Http\Controllers\Livewire;
use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Str; use Laravel\Jetstream\Jetstream;
class PrivacyPolicyController extends Controller { /**
@return \Illuminate\View\View */ public function show(Request $request) { $policyFile = Jetstream::localizedMarkdownPath('policy.md');
return view('policy', [ 'policy' => Str::markdown(file_get_contents($policyFile)), ]);
} }
Es pot fer un video curt o Tip per mostrar a Youtube ->
https://jetstream.laravel.com/2.x/features/registration.html#requiring-terms-of-service-privacy-policy-approval
Str::markdown https://laravel.com/docs/8.x/helpers#method-str-markdown
Plugin de Tailwind prose per formatar correctament Markdown:
https://github.com/tailwindlabs/tailwindcss-typography
https://github.com/acacha/casteaching_teacher/blob/master/routes/web.php
<?php
namespace Laravel\Jetstream\Http\Controllers\Livewire;
use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Str; use Laravel\Jetstream\Jetstream;
class PrivacyPolicyController extends Controller { /**
@return \Illuminate\View\View */ public function show(Request $request) { $policyFile = Jetstream::localizedMarkdownPath('policy.md');
} }