Questions tagged [laravel-views]

69 questions
0
votes
2 answers

why does View::make() not exist in laravel docs?

why does View::make() not exist in laravel docs? I have gone through on xVersion/views pages of all versions of Laravel docs, but I couldn't find any statement about View::make(). who can explain to me how it works? additional info, I'm learning…
Murod
  • 22
  • 1
  • 6
0
votes
1 answer

Laravel view render and javascript?

I have in my application a lot of generated reports with html tables, now I implemented with vuejs diagrams. But I can't get them rendered because they are in javacript. $view = view('reports.single.print', ['stats' => $stats]); $html =…
MarcoT
  • 1
0
votes
2 answers

How to Display the data in my database in welcome.blade.php in Laravel?

I would like to know how can i pass the data in my database and display it in Welcome.blade.php i already have a data but i can't make it display in this view this is my code in HomeController.php.
jaze cara
  • 9
  • 2
0
votes
1 answer

Laravel Dashboard Query on Enrolled students this Year?

For example, I have five tables (School, Student, Class, Session, and Enrollment) the Enrollment Table store the Primary Key of other tables, Now I like to count in Session wise that how Many students have enrolled in Session 2019-2020 and display…
inasar
  • 51
  • 1
  • 8
0
votes
1 answer

how to do Role Base Access in Laravel?

I am new in Laravel How to do in laravel role with the following table $table->id(); $table->string('name'); $table->string('email'); $table->timestamp('email_verified_at')->nullable(); …
0
votes
1 answer

How to return a specific value from the database on View from Controller in Laravel?

I am trying to return a specific value from the database on View(activate_id) from AdminController but it returns nothing. web.php Route::get('/activate-id', 'AdminController@activateId')->middleware('role:admin'); AdminController.php public…
0
votes
1 answer

Datatables not populating using laravel v6.0, datatables v1.10.20 and yajra/laravel-datatables-oracle v9.10

As mentioned above, my datatable isn't populating using the versions mentioned in the subject line above! Below is some of my code as well as a Code Snippet. oSupplierTable = $( "#supplier-table" ).dataTable({ ajax: "{{ url(…
Tim Kruger
  • 863
  • 2
  • 10
  • 26
0
votes
1 answer

How to use One view with Multiple Guards Laravel

I have multiple guards in my system Admin User Admin and User both can add the Organizations details but they have different template layout. What i'm doing now i create views of each guard like this views user organizations …
antweny
  • 67
  • 2
  • 10
0
votes
0 answers

Dynamic Metatags in Laravel using views

I have a setup where I am trying to load dynamic metadata (og) for a range of different pages in Laravel. The basic structure of my application view is: meta.blade.php base.blade.php (extends meta) layout.blade.php (extends base) index.blade.php…
Rutnet
  • 1,533
  • 5
  • 26
  • 48
0
votes
1 answer

How to create drop down list data that came from different table name in Laravel 6

I have a problem that I want to create a drop-down list from the city table and display in pack view. How can I create city_name in pack view? thanks Here is my code _create.blade.php @extends('layouts.admin.app') @section('content')
0
votes
2 answers

How to pass Raw query result from controller to view?

I need to generate a number from database and show it on input at view. I use function on MySQL to achieve that so I use raw expression. $nomor = DB::table('customers')- >selectRaw('concat(year(now()),lpad(month(now()),2,0),lpad(id, 3, 0)) …
0
votes
2 answers

Laravel 5.8 View [admin.home] not found on live site

my laravel site is working fine on localhost but not working on live domain after i upload my site on hosting. I cleared my cache from online, check my routes again but nothing change. MY ROUTES: Route::group(['prefix' => 'admin',…
Umer Rasheed
  • 138
  • 2
  • 13
0
votes
0 answers

I have a problem sending an email with a specific View selected in Laravel

This code delete the user and sends a message to him public function deleteUser() { if (auth()) { $user = auth()->user(); if ($user->delete()) { Mail::send('vendor.mail.html.message', [], function($m)…
gms
  • 144
  • 1
  • 8
0
votes
3 answers

Getting data in response, but after rendering the view through ajax not getting few data

Laravel: 5.7.25 PHP 7.2.10 Sample data in response {,…} data: [{id: 1,…}, {id: 2,…}, {id: 3,…}, {id: 4,…}, {id: 5,…}, {id: 6,…}, {id: 7,…}, {id: 8,…}, {id: 9,…},…] 0: {id: 1,…} carModelBodyType: {id: 1, name: "Sedan", status: 1, created_at:…
0
votes
1 answer

Laravel 5.5 How to read flash data in a view page

My Controller is redirecting to this View with flash data(data from a table row). How do I print for example, just the "titulo" or "resumo"? Or, instead of sending all the information from a table row to a single variable, do I have to send…
CodeOnce
  • 79
  • 1
  • 9