mathewp

Member Since 4 Months Ago

Experience Points
3,360
Total
Experience

1,640 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
13
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

  • Community Pillar

    Earned once your experience points ranks in the top 10 of all Laracasts users.

Level 1
3,360 XP
Jan
19
2 days ago
Activity icon

Started a new Conversation Input Multiple Tags

Hi, in my project for creating post I would like to give a feature to add multiple tags . Not from any database or list. User can input it. In livewire using alpine how it is possible pls..

Jan
06
2 weeks ago
Activity icon

Started a new Conversation Livewire - Unisharp Filemanager Standalone

hi, Ho to use unisharp file manager as standalone in livewire.

Activity icon

Replied to Tiny MCE Is Sending Request To Server For Each Key

I have changed the function

setup: function (editor) { editor.on('init change', function () { editor.save(); }); editor.on('blur', function (e) { @this.set('body', editor.getContent()); }); },

I think it is working now but the issue is on lost focus it will re-render . so the unisharp filemanager standalone button will also re-render. so it will not get the selected file name.

Jan
04
2 weeks ago
Activity icon

Started a new Conversation Tiny MCE Is Sending Request To Server For Each Key

hi, I am using Tiny MCE in my project. It is sending request to server for each keystroke .

Using wire:ignore and it is not re-rendering. But wire:model.defer is not working in .

I want to send the full text in textarea while pressing the save button or leaving focus from the textarea.

How can i solve it.. please....

Dec
22
4 weeks ago
Activity icon

Replied to Laravel View Composers And Livewire

Thanks. My doubt is if we use live wire components in partials whether we get the same advantage of view composer or not

Activity icon

Started a new Conversation Laravel View Composers And Livewire

Hi,

What is view composers and its practical usage. If we are using livewire in our project, whether view composer is required. Please

Dec
18
1 month ago
Activity icon

Started a new Conversation Laravrl Unisharp File Manager

Hi, how can I disable some options like new folder, rename etc.. in unisharp file manager. And how to restrict browse a specific folder only

Dec
16
1 month ago
Activity icon

Replied to Laravel Livewire - Tinymce Editor

with livewire how can i save the image to a folder

Dec
15
1 month ago
Activity icon

Started a new Conversation Laravel Livewire - Tinymce Editor

Hi, I am using tinymce editor for my blog project with livewire components.

How can I configure the image saving in tinymce with livewire... and I want to save the images when i click the save button in forms. please

Dec
09
1 month ago
Activity icon

Replied to Livewire Components - How To Pass Flash Message From Child To Parent

thank u for the reply.. will try it

Activity icon

Started a new Conversation Livewire Components - How To Pass Flash Message From Child To Parent

hi, i am using a parent livewire component for updating user profile. using another component for password change. It show/hide using alpine. After successful updation of password I want to flash a message to parent component user profile. How is it possible pls...

Dec
07
1 month ago
Activity icon

Replied to How Can We Protect Uploaded Images And Pdf Files In Laravel

I want to store the images in app/public folder and display the same in blade file without a symbolic link to public folder. Because i am using a shared host and not able to create a link

Activity icon

Replied to Access Images From Storage/app/public Folder Without Creating A Link

I want to display the image in my blade file. Can i use it as a general function in my project

Activity icon

Started a new Conversation Access Images From Storage/app/public Folder Without Creating A Link

hi all, i am using a shared hosting. How can I retrieve an image from storage/app/public folder without creating a link with public folder.

Nov
30
1 month ago
Activity icon

Replied to Laravel Livewire Pagination With A Collection

Thank u for the reply.. i have corrected it. The issue in may code was the collection variable was public. I have changed it to local and passed to view. It is working fine now. Thank u very much. However I will try with your code example

Activity icon

Replied to Laravel Livewire Pagination With A Collection

Paginate is not accepting with collection.. showing error

Activity icon

Started a new Conversation Laravel Livewire Pagination With A Collection

Hi , how can i use livewire pagination with the following user collection

my component:

$this->users = User::with('roles','permissions')->get();

return view('livewire.permission.user_permissions',[$this->permissions,$this->roles, $this->users])

Nov
28
1 month ago
Activity icon

Replied to Laravel How To Prevent Deletion Of A Permission If It Linked With Any Role

i have imported the role model in component

but

getting error

Method Illuminate\Database\Eloquent\Collection::hasPermissionTo does not exist.

Activity icon

Replied to Laravel How To Prevent Deletion Of A Permission If It Linked With Any Role

thanks for the reply.

how can i implement it in a livewire component.. pls..

Activity icon

Started a new Conversation Laravel How To Prevent Deletion Of A Permission If It Linked With Any Role

hi,

I am using spatie permission. I want to delete a 'permission' from permission table.

Before deleting, i want to check that whether this permission is linked with any 'role'. How is it possible.

And if it is linked with any role , i want to stop the deletion or

first delete the the permission from roles and then delete the permission.

Nov
27
1 month ago
Activity icon

Replied to Livewire Binded Check Boxe's Checked Attribute Is Not Working

thanks for the reply.

in component i created following code for unsetting the false value and to set true value as key value. it is required for sync permissions in role-has-permissions table

foreach ($this->selections as $key => $value) { if ($value == FALSE) { unset($this->selections[$key]); } else { $this->selections[$key]= $key; } } ;

Activity icon

Started a new Conversation Livewire Binded Check Boxe's Checked Attribute Is Not Working

Hie, Livewire binded check boxe's checked attribute is not working..

@foreach ($permissions as $perm)

                       <div class="mt-1">
                   <label class="inline-flex items-center">
               <input  wire:model="selections" type="checkbox" value="{{ $perm->id }}"  class="w-6 h-6 text-green-500 form-checkbox "
               checked >
                        <span class="ml-3 text-sm">{{ $perm->name }}</span> </input>
                    </label> 
                     </div>
                 @endforeach
Nov
25
1 month ago
Activity icon

Replied to Livewire Multiple Select

if i want to validate the values in $selection in component ie whether exists in permission table or not how can i do it in rules.. pls..

Activity icon

Replied to Livewire Multiple Select

thanks for the reply.

		<option value="$perm->id">{{ $perm->name }}</option>

should like

                   <option value={{$perm->id}}>{{ $perm->name }}</option>

then i will get the value id of selected item in $selection in component

one more doubt..

if i want to validate the values in $selection in component ie whether exists in permission table or not how can i do it in rules.. pls..

Activity icon

Replied to Livewire Multiple Select

in component

public $permissions=[]; $this->permissions = Permission::all();

in blade

	  <select wire:model="permissions" name="p" id="p" class="p"   multiple>
                @foreach($permissions as  $perm)
                <option >{{ $perm->name }}</option>
                @endforeach
                     </select>

this is my code

in view it display the name of permissions in dropdown but when i click on the dropdown for selection it shows the error

Trying to get property 'name' of non-object

what is the proper method to define the wire:model for multiple select in blade...

Activity icon

Started a new Conversation Livewire Multiple Select

Hi all, i am trying to create an admin panel with user, role and permission manager in livewire. In role management i want to use role as well as permission. I would like to use multiple select for this. How can I bind the permission in blade file using wire:model. Can anybody give an idea about this. What settings required in component and blade.. pls..

Nov
21
2 months ago
Activity icon

Replied to Using Spatie Permission Package With Livewire

hi, what should be the file name for this trait which to store in app\traits folder

Activity icon

Started a new Conversation How To Add Middleware For Methods In Livewire Components Like Middleware In Controller Constructor

Hi all, how to add a middleware for methods in liviewire like using middleware in controller constructor method to control the access of a method(s).

Nov
19
2 months ago
Activity icon

Started a new Conversation Restrict Captcha Route Call Only Through Register View Blade

I am using a captcha in blade view . It is calling through a route to display the image in view. How can I restrict the call to that route only through register blade view only.

Nov
15
2 months ago
Activity icon

Started a new Conversation How To Sanitize Input From WYSIWYG Editor

Hi, how can I sanitise data from wysiwyg editor in laravel. What about other text input. Whether laravel will do internally or we have to do it.

Nov
11
2 months ago
Activity icon

Started a new Conversation Which Is Best Captcha For Laravel 8

I am using mewebstudio captcha in laravel 8. But always it is showing mis-match error. And there is no effect even if we made changes in config files. Is there any alternative to it pls..

Nov
10
2 months ago
Activity icon

Started a new Conversation Custom Validation Rule In Livewire

I have added a custom validation rule for excluding email_id which contains specific domain. But it is not working and getting errors "Constant expression contains invalid operations". If i remove the custom rule it will work.

protected $rules = [ 'uid' => ['required','exists:uids','unique:users'], 'mobileno' => ['required','integer', 'min:10'], 'name' => ['required','min:3'], 'email' => ['required', 'email:rfc,dns', 'unique:users',new TestMail], 'password' => ['required', 'min:8', 'same:passwordConfirmation'], ];

Nov
08
2 months ago
Activity icon

Replied to Tailwind Alpine Js Drop Down Is Opening On Page Reload

yes i used x-cloak in div tag and used [x-cloak] { display: none } in css.

It is working fine now....

thanks to all

Activity icon

Replied to Tailwind Alpine Js Drop Down Is Opening On Page Reload

yes. I have tried x-cloak .. in a template tag.. but it is hiding the button. please tell me what is the correct method to use x-cloak

Activity icon

Replied to Tailwind Alpine Js Drop Down Is Opening On Page Reload

< ul x-show="dropdownOpen" @click.away="dropdownOpen=false" class=" relative fixed inset-0 h-full w-full z-10">

                <li  class="  absolute right-0 mt-2 w-48 bg-white rounded-md overflow-hidden shadow-xl z-10">
                    <a href="#" class=" block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-600 hover:text-white">Profile</a>
                    <a href="#" class=" block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-600 hover:text-white">Products</a>
                    <a href="/login" class=" block px-4 py-2 text-sm text-gray-700 hover:bg-indigo-600 hover:text-white">Logout</a>
                </li>
        </ul>
    </div>
Activity icon

Replied to Tailwind Alpine Js Drop Down Is Opening On Page Reload

\div x-data="{ dropdownOpen: false }" class=" relative "> <button @click="dropdownOpen = ! dropdownOpen" class="relative block h-8 w-8 rounded-full overflow-hidden shadow focus:outline-none ">

Activity icon

Started a new Conversation Tailwind Alpine Js Drop Down Is Opening On Page Reload

Hi all, I am using tailwind and alpine to open/close a drop down menu. It is working fine. But it will open and close when a page reload. Some solutions found to set the display:none in style. but it is not working. Any solutions for this please....

Nov
05
2 months ago
Activity icon

Replied to Multiple Live Wire Components In A Blade Page

U mean the corresponding blade file of lw component..

Activity icon

Started a new Conversation Multiple Live Wire Components In A Blade Page

Hi, i want to create blog master page with category, tag, post , created by, created date, recent posts, popular posts etc... I would like to create separate livewire components. How is it possible to display each component in master blade. Which is the best practice

Nov
02
2 months ago
Activity icon

Replied to SPA Application In Laravel 8

that means , no need to install the turbolink. only cdn link is necessary

Oct
31
2 months ago
Activity icon

Replied to Layouts.app Is It Mandatory

ok.. let me try in that order and let you know ... thank you very much for your support

Activity icon

Replied to Layouts.app Is It Mandatory

if i create a app.blade in layouts folder then the demo will open that blade only

Activity icon

Replied to Layouts.app Is It Mandatory

livewire demo.php

namespace App\Http\Livewire;

use Livewire\Component;

class Demo extends Component { public function render() { return view('livewire.demo'); } }

here it is loading the demo blade without any extension

Oct
30
2 months ago
Activity icon

Replied to Layouts.app Is It Mandatory

no <x-app-layout inside demo.blade.php

Activity icon

Replied to Layouts.app Is It Mandatory

    <title>Laravel</title>

    <!-- Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Nunito:[email protected];600;700&display=swap" rel="stylesheet">

    <!-- Styles -->
    <style>
       
    </style>

    <style>
        body {
            font-family: 'Nunito';
        }
    </style>
</head>
<body class="antialiased">
   <div>
       <p> demo.blade.php</p>
   </div>
</body>
Activity icon

Started a new Conversation Layouts.app Is It Mandatory

Hi, i have created a starting project . And created a live wire component and its blade called 'demo' . When i tried to create a route to open demo without any middleware it showing an error "View [layouts.app] not found."

My blade file 'Demo' is in live wire folder with full html code. need no extension.

my route is

use App\Http\Livewire\Demo; Route::get('demo', Demo::class, 'livewire.demo')->name('demo');

what is wrong in it. I am not using app.blade.php anywhere.

Activity icon

Replied to Pass Variable To Extended Layout In Livewire

yes this also not working..

i want to change a navbar based on the router.. that is my intention