Hey, I'm new to using Laravel and I've been trying to incorporate a country dropdown menu into a registration form. Following the instructions on https://github.com/Monarobase/country-list I've installed the package and added the configurat ...
I placed my view.blade.php file in resourcesviewsadminloginview.blade.php and used the following code to link it to the CSS file: <link href="{!! HTML::style('css/style.css') !!}" rel="stylesheet">. My CSS file is located in the folder publiccss ...
I had a Users table and a group table. When I load the group table, it loads the users which have the same group_id as the group table id. It works, but my issue is that the foreach loop was quite messy. The output ends up looking like this... However, I ...
Currently, I am working with Laravel and Vuejs. I am trying to trigger an event when a component is shown or hidden. Can anyone provide guidance on how to accomplish this? <album-images v-show ="!gallery" :album = "album" :image-arr = "imageArr">& ...
I have created a partial view to show the page header, which takes in two variables - an Icon and a title. The code for pageHeader.blade.php is as follows: <div class="page-header"> <div class="row"> <!-- Page header, center on small sc ...
Has anyone tried using Laravel Blade in a <template></template> section of a Vue/Vueify component? I'm struggling to figure out how to make the Blade processor work and have it output the HTML code into the template within the .vue file or an ...
I keep encountering a 500 internal server error on a student portal that I am developing. Whenever I attempt to post a program using a POST request, the error occurs. Strangely, the same code works perfectly fine when posting the academic year. I am curren ...
After thorough debugging, I found an interesting issue in the code. Initially, when I debugged using {{ dd($order->id) }}, it correctly displayed the order id value of 100238. However, the following form action did not work as expected: <form action= ...
I have two buttons, one for play and one for pause. <td> <?php if($service['ue_status'] == "RUNNING"){ $hideMe = 'd-none'; } ?> <a href="#" class="btn btn-warning btn-sm text-warning ...
In Laravel version 5.3.9, I encountered an issue on the dashboard view regarding an undefined variable called "posts". My intention is to display a list of all posts associated with a specific user from the database. Here's the snippet of my current code: ...
After diving into Laravel and Vue, I managed to put together a navigation component as well as an article component. The problem I'm facing is that although my navigation vue component is visible, the article component seems to be missing. Reviewing my c ...
Hey everyone, I hope you're all doing well! I'm facing a bit of an issue with passing data from an axios response to the data property. The data is successfully fetched from the database and displayed in the console, but when I try to display it ...
My understanding of Laravel Blade is limited and I am struggling with the following code: <span v-bind:class="{ 'total': (listing.price_per_week), 'total total-center': (!listing.price_per_week)}">@{{ listing.price_view }}*</span> I am trying ...
When trying to implement the blade syntax route() in a vue js component, I attempted the following code: <nav-bar :user="{{ json_encode(Auth::user()) }}" :authPath= "{{ route('auth') }}"> </nav-bar> An error popped up in the cons ...
I have encountered an issue with my custom directives for Ziggyroutes in Laravel. These directives were functioning properly in Laravel 5.7, but after upgrading to Laravel 5.8, they no longer work as expected. Instead of executing the directive, it simply ...
I need to include PHP code as text in a Laravel Blade file, similar to adding code on Stack Overflow. In my Blade file, I have the following: {!! nl2br($article->body_ru) !!} In $article->body_ru, I've added: huijlhgfyuhukik rfthkgjb ftygyjh < ...
In one of my blade templates, I have a function call that should receive a string as its first parameter. However, Laravel seems to be interpreting the string and adding a ternary operation because it detects a '?' symbol followed by 'or'. Here's the issu ...
Here is the HTML code for my multi-select input: <select id="invitees_list1" class="form-select" multiple name="multi"> @foreach ($seatedTable->invitees as $invitee) <option> {{ $invitee ...
I am attempting to create a conditional statement using AJAX in my code that will display a button when the user is an 'admin'. While it is simple in Blade, I am encountering issues when trying to print it from jQuery. -- JavaScript Code -- cod ...
Struggling to craft a button using the Form builder. {!! Form::button('<span style="color: {!! $colour[$i] !!}" class..') !!} The specific details of the button don't matter, all I wanted was to adjust the font color to $colour[$id]. This method worke ...
I have been working with Nuxt.js on my Laravel project. Combining them was a necessary step since they each come with their own boilerplate during installation into the project. I managed to make almost everything work smoothly until I encountered an issu ...
I'm currently developing a blog using the Laravel framework. I am in the process of implementing a commenting feature and have completed the basic structure for it. However, I encountered an issue with an undefined variable ($comments) in my view, which le ...
Can someone assist with editing a foreach loop to add a class to divs only if the number of divs is greater than 3, without affecting those with fewer divs? @if(!empty($property->testimonials)) @foreach($property->testimonials as $testimonial) ...
I have developed a script that allows me to add dynamic fields and delete them as needed. However, I am facing an issue where I cannot delete the first element with the "el" class in my script because it removes all elements within the "input_fields_cont ...
One inquiry that I have is about the best practice when using Laravel. I have a blade page that displays all of my products, and in my loop, I check if the product has an image. If it does, then I ignore it: @foreach ($products as $product) @if(is_nul ...
I am currently utilizing the Laravel Blade template engine for page generation. I have a default page setup to display all content. The issue I'm facing is that I can't seem to include all CSS styles in the head section. Specifically, the menu has some cus ...
Currently working on a web application built in Laravel and encountered an issue with the code snippet below: <div class="user-info" style="background-image:url({{ asset(Auth::user()->partner->background) or '/images/default/background1.jpg& ...
In my setup, I have a main controller named Controller.php that loads various classes. Additionally, I have another controller called Admin.php which extends from the main controller, allowing it to access methods from the loaded classes such as the sessio ...
In my Laravel 4 application, I have a master layout located at /views/layouts/main.blade.php. However, I want to exclude this master layout from a single view: /views/users/login.blade.php. The main layout is a fully featured bootstrap admin layout with m ...
I am currently working on a Laravel web application that caters to two distinct types of users: customers admins Depending on their user type, they have access to different features and functionalities. Customers When customers log in, they are greete ...
I've been working on a registration page, but the data is not getting sent to my database. Strangely, no errors are being reported. Below is the code from the controller (Generated by Laravel): namespace AppHttpControllersAuth; use AppPostUser; use ...
I am currently working with two tables, Companies and Projects. In this setup, a company has many projects while a project belongs to a specific company. Company.php model protected $fillable = [ 'id', 'name', 'description&ap ...
Attempting to create an ajax call and accessing a field from the table on the server yields the following: <PushProperty><Status ID = "1"> Success </Status><ResponseID> b3633c9eeb13498f </ResponseID><ID> 9098 & ...
#SeekingHelp I need assistance with an issue I'm facing. My blog content includes syntax examples like {{ $title }} as it describes Laravel Blade. The Issue: When rendering my blog content on Vue.js, everything goes haywire due to the Blade syntax { ...
Currently, I am performing a basic calculation within app.js by multiplying the product price with the quantity. My goal is to showcase the total value in Laravel for users to preview their order. app.js const app = new Vue({ el: '#item', ...
Recently, I've started working with Laravel 7 and AJAX. One of the features I want to implement is a 'product's name' navbar that displays product details in a div without refreshing the page when clicked. I came across a demo showcasing this functionality ...
This is the route that I am using Route::get('login', function(){ return View::make('admins.login'); }); In this code, I have created a admins/login.blade.php file to handle the login view. <!doctype html> <html> <head> <met ...
Forgive me if this sounds like a silly question: I attempted to use the following src attribute in an img tag to show an image on a website created with Bootstrap, while using phpstorm with a laravel blade file: src="C:UsersMAHEPicturesWallpapersphoto ...
I'm attempting to retrieve unique values for a dropdown from a specific column, I've tested these queries in my controller, however, the results are coming back empty. Attempted Controller Query 1 public function create() { $categories = Category::al ...
We are currently implementing a searchable dropdown menu for our web application using a vue component. Strangely, the component fails to load on my local version (xampp) as well as on the deployed website. However, it displays properly on another develope ...
Within a Laravel view, there is a component where the data in the select tag sometimes doesn't show up. It's quite strange as it randomly displays the data and other times it doesn't. There are no errors being logged in the console or the vi ...