Category : laravel-blade

I want to ask, how can I set the default path for my kernel with multiple applications in laravel? my folder multiapplication structure resources .views .applications .dashboard (index.blade) .app (index.blade) .app1 (index.blade) … My question . How can I define a dynamic path that my helper returns to the application and set this path for ..

Read more

I’ve been trying to create a dropdown of the next 10 days (along with the day optional) in Laravel blade.php I was able to get the current date using carboncarbon::now(); but when I try to add a day in the same variable it gives an error <select class="form-control"> <?php $today = CarbonCarbon::now()->format(‘m-d-Y (l)’); $iterate = ..

Read more

I have a HeaderData model, it has two fields: $table->string(‘url’); $table->text(‘data’); Through BaseController, I added one method for all controllers, so as not to repeat the code: protected $header_data; public function __construct() { $this->header_data = HeaderData::all(); View::share(‘header_data’, $this->header_data); } And I display this on the pages, the data field in the head: @foreach ($header_data as ..

Read more

I have fields in the header on each page of the site <title>Blog</title> <meta name="description" content="Blog description" /> I want to fill in these fields not through the code, but separately through the api To do this, I created a table in the database with such fields $table->string(‘url’); $table->text(‘data’); Created an api controller with functions ..

Read more

I want to declare the value inside the include, so that later I can call it in the file itself First I do this @include(‘components.protected-email’, [‘key’ => ’emails[0]’]) and in the file itself @php $split = explode(‘@’, $key); $first = $split[0]; $second = $split[1]; @endphp <a href="" data-first="{{ $first }}" data-second="{{ $second }}" class="js-combaine-email"></a> But ..

Read more

Route [journal.edit] not defined. (View: /home/vagrant/code/teacher/resources/views/semester.blade.php) Help to understand why and how it can be fixed? can’t find how to make this feature work i know it doesn’t work as well as mine because i use a pivot table. my erorr my web.php <?php use IlluminateSupportFacadesRoute; use AppHttpControllersJournalController; use AppHttpControllersHomeController; use AppHttpControllersMarkController; /* |————————————————————————– | ..

Read more