I want add PHP-code as text in laravel blade. (Something like adding code in stackoverflow)
in blade file I have:
{!! nl2br($article->body_ru) !!}
in $article->body_ru I'm add
huijlhgfyuhukik
rfthkgjb
ftygyjh
<code>
<?php
namespace App\Services;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Collection;
use stdClass;
class WeatherService
{
}
</code>
And I'm want to see something like this in body:
huijlhgfyuhukik rfthkgjb ftygyjh
<?php
namespace App\Services;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Collection;
use stdClass;
class WeatherService
{
}