afrasiyabhaider

afrasiyabhaider

Web Developer at Self Employed

Member Since 1 Year Ago

Gujrat

Experience Points
4,850
Total
Experience

150 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
26
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.

Level 1
4,850 XP
Mar
30
3 months ago
Activity icon

Started a new Conversation Which Is Best Tutorial Fro Laravel CRUD With VueJs

which is best tutorial fro laravel and VueJs crud

Mar
06
4 months ago
Activity icon

Replied to Ck Editor Inserts Tags In Database

It is the default behaviour of CK-Editor

Activity icon

Replied to Auth()->user() Returning Null While Using With Vue

If you want to check wether the user is login then you should use

Auth::check();

Activity icon

Replied to Auth()->user() Returning Null While Using With Vue

You should use

Auth::user();

Activity icon

Started a new Conversation Payroll System Help

I want to build a payroll system in laravel. Is there any package available which can do so..??

Like there is very good package of permission system named as Spatie-Permission

Feb
21
4 months ago
Activity icon

Replied to Payment System

@martinbean stripe is for direct payments... but In this scenario payment will be sent to Admin then user have to sent a withdrawal request then admin will release payment to user. User also uses that money to buy anything on the site... Its like a wallet

Activity icon

Replied to Payment System

@kylemilloy this is the whole scenario which I want to implement

Feb
19
4 months ago
Activity icon

Started a new Conversation Payment System

I want to implement the payment system like UpWork

Adding funds to accounts

When someone sells anything on website, when his product is purchased the payment is sent to admin and then admin will send payment to sellers account after deductions , seller can spend that amount on site to buy but to withdraw amount he has to request for withdrawal through one of following A- BankTransfer ( x will be charged and Y time will be required ) B- Online ( x will be charges and Y time will be required) And bidder can add amount to his account through credit card/paypal/bank wire

If anyone have sollution regarding this problem please guide me

Jan
28
5 months ago
Activity icon

Started a new Conversation Need Suggestions

Hello everyone Can you guys please suggest me some projects which I should include in my portfolio to learn something new and to imporve my portfolio as well... I was thinking that I should made with it with VueJs and ofcourse in Laravel...

So please suggest me some..

Jan
19
5 months ago
Activity icon

Started a new Conversation E-bidding Website

I want to develop a multi-vendor e-bidding website (like ebay) with laravel. Please suggest me if there is any available script or anything that would help me

Jan
14
5 months ago
Activity icon

Replied to How To Check Same Set Of Permissions Assigned To Another Role?

I want to show the name of role which have identical set of permissions Role is in Roles table Checking Permissions from Role_has_Permissions table so this worked in my case

Activity icon

Awarded Best Reply on How To Check Same Set Of Permissions Assigned To Another Role?

Found Solution @prasadchinwal5 thank you for helping

 $roles = Role::get();
        $permissions = $request->input('permissions');
        $notSame = false;
        $sameRole = null;
        for ($i = 0; $i < count($roles); $i++) {
            $role_permissions[$i] = $roles[$i]->getAllPermissions()
                ->pluck('id')->toArray();
            for ($j = 0; $j < count($role_permissions[$i]); $j++) {
                if ($role_permissions[$i] == $permissions) {
                    $notSame = true;
                    $sameRole = $roles[$i];
                    break;
                }
            }
        }
        /**
         * Below condition will check if same set of permissions is
         * not assigned to any other role then It will be processed
         * further otherwise user have to choose different set of
         * permission
         *
         */
        if ($notSame && ($sameRole != null)) {
            alert()->warning('Role Already Exists', 'A role named as "' . $sameRole->name . '" with same permissions 
             already exists try with another permissions set');
         return redirect()->back();

        } else {

    - Write here your code to store into DB
    }

Activity icon

Replied to How To Check Same Set Of Permissions Assigned To Another Role?

Found Solution @prasadchinwal5 thank you for helping

 $roles = Role::get();
        $permissions = $request->input('permissions');
        $notSame = false;
        $sameRole = null;
        for ($i = 0; $i < count($roles); $i++) {
            $role_permissions[$i] = $roles[$i]->getAllPermissions()
                ->pluck('id')->toArray();
            for ($j = 0; $j < count($role_permissions[$i]); $j++) {
                if ($role_permissions[$i] == $permissions) {
                    $notSame = true;
                    $sameRole = $roles[$i];
                    break;
                }
            }
        }
        /**
         * Below condition will check if same set of permissions is
         * not assigned to any other role then It will be processed
         * further otherwise user have to choose different set of
         * permission
         *
         */
        if ($notSame && ($sameRole != null)) {
            alert()->warning('Role Already Exists', 'A role named as "' . $sameRole->name . '" with same permissions 
             already exists try with another permissions set');
         return redirect()->back();

        } else {

    - Write here your code to store into DB
    }

Activity icon

Replied to How To Check Same Set Of Permissions Assigned To Another Role?

@prasadchinwal5 It will check only one permission because of using diff() but I want to check array of newly assigned permissions with another array of permissions which already exists.......

Jan
13
6 months ago
Activity icon

Started a new Conversation How To Check Same Set Of Permissions Assigned To Another Role?

I am using spatie permission package and I want to make sure that two roles with different names must not have same permissions while creating a role e.g

Role A
 - Pemission 1
 - Permission 2
 - Permission 3

Role B
 - Pemission 1
 - Permission 2
 - Permission 3

If this happens system should not create 2nd role "Role B"

Can anyone please guide me?

Activity icon

Awarded Best Reply on Images Not Displaying In Views

I've found solution

I putt following code into my public/.htaccess and now its running at rocket speed :D

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
Activity icon

Replied to Images Not Displaying In Views

I've found solution

I putt following code into my public/.htaccess and now its running at rocket speed :D

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
Activity icon

Replied to Images Not Displaying In Views

When i put image in public folder it works fine but when i try to access public/storage it doesn't work at all

Activity icon

Replied to Images Not Displaying In Views

This is on localhost and When i write {{asset('storage/'.$value->image)}} i get the exact path @fylzero @bugsysha

http://github.camppus.edu:8080/storage/uploads/images/staff/6zuYSn7wKiYWXDBp3zsLimWnQbNrAv0794asKwYY.jpeg

@jlrdw It was working fine 3 days ago with the same code but suddenly this thing happen

Please tell me a solution for this error/mistake

Jan
12
6 months ago
Activity icon

Started a new Conversation Images Not Displaying In Views

I've linked my storage folder into public by running php artisan storage:link when i access those images it displays accurate url with accurate name but when I gives image path into src tag it doesn't display image and when i paste image url with base_url then it displays a page of forbidden please help me tp solve this issue. i am using below code to display image

{{asset('storage/'.$value->image)}}