afrasiyabhaider

afrasiyabhaider

Member Since 4 Months Ago

Gujrat

Web Developer at None

Experience Points 750
Experience Level 1

4,250 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 1
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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.

12 Aug
6 days ago

afrasiyabhaider left a reply on Email Sending Error

By following instructions of below-given link, my emails are now successfully sending

https://derekbliss.com/post/laravel-streamsocketenablecrypto-ssl-operation-failed-with-code-1

afrasiyabhaider started a new conversation Email Sending Error

I am getting this error while sending email

ErrorException thrown with message "stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed"

08 Aug
1 week ago

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

Because admin is registering students and teachers so admin is responsible to assign an initial password.

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

@martinbean you are right then what should be the initial password set by the admin while registering the student and teacher?

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

If the password is saved with a random number then how teacher/student will get their password if the password is stored with Hashing?

No invitation system is not in the requirement

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

I've got a solution now, guide me if I am wrong.

Admin has to enter the roll number/ teacher id, so initially, the roll number will be set as the password for student and teacher id will be set as a password for teacher and these things will be hashed and stored in the password column of teacher and student.

Should I go with this or you guys have some better option?

@abdk2r @tykus @click @

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

@click he is the admin so it's up to him that he wants to watch the password or not. Why should I force him not to watch the password of students and teachers :D

If you have any solution then please tell me.

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

@tykus do you have any better option then please suggest me

afrasiyabhaider left a reply on Login With Plain-text Instead Of Hashed Password

Client whish to see the password of all users if the password is hashed then it will not be understandable by the client or any human being. The problem of hashing is, it cannot be reversed into plain text so that's why password as a plain text is a requirement

afrasiyabhaider started a new conversation Login With Plain-text Instead Of Hashed Password

I am developing a school portal and there are many entities who have separate record saved in separate DB e.g Teachers, Students, Staff

I want that every user should have a password as a plain text, not the hashed password. Tell me what to change in LoginController so it will check the plain text with password column rather than hashed text with password column while performing login

Client whish to see the password of all users if the password is hashed then it will not be understandable by the client or any human being. The problem of hashing is, it cannot be reversed into plain text so that's why password as a plain text is requirement

28 Jul
3 weeks ago

afrasiyabhaider started a new conversation How To Create Route Of Login On The Basis Of Role Column?

I've created a column named as 'role' in Users table there are 3 roles student, teacher, admin I want that when the user enters his credentials he should be redirected to his home page e.g if email = [email protected] password = 1234

then the system should get his role from DB and redirect him to his respected home page (student/home)

27 Jul
3 weeks ago

afrasiyabhaider left a reply on Pagination Links Not Working In View

@bryan1671 Laravel has a built-in method to create pagination use the following code in your controller while getting data from DB

$posts = Post::orderBy('created_at','desc')->paginate(5 ); return view('posts.index')->with('posts',$posts);

use function : paginate('number_of_posts_per_page');

use the following code in your view

{{$posts->links()}}

Change the data according to your context

Hope it works well

afrasiyabhaider left a reply on Laravel 5.8 Error 404 | Not Found On Route When It Exists

@benbermingham You are using a Post method in your route but it should be (delete) instead of (post).

Route::delete('/training/availability/{$id}/delete', '[email protected]')->name('availability.delete');

After creating this route run the following command on terminal

php artisan route:list

just to make sure that your route is correct or not

Remember there are four basic route methods 1- get 2- post 3- put (for update) 4- delete

but if you want to work with all 4 methods just use resource

e.g Route::resource('route_name','controller_name');

Hope it will work as it worked for me

afrasiyabhaider started a new conversation How To Migrate Specific Table Without Removing Data Of Other Tables?

I have students and roles table already in my DB. I've added a new table named as Course now, I want to migrate course table but I don't want to delete the data of already created tables.

Suggest me a solution if there is any.!

26 Jul
3 weeks ago

afrasiyabhaider started a new conversation How To Handle "staff/{$id}/delete_role/{$id2}" This Route In Controller?

I want to get staff and role id to delete a role whos

model_has_role.staff_id = model_has_role.role_id

22 Jul
3 weeks ago

afrasiyabhaider left a reply on Permission System

Thank You <3

21 Jul
4 weeks ago

afrasiyabhaider started a new conversation Permission System

I want to create a permission system for academic departments. Please tell me should i use some packages in laravel if so then which one is the best in Laravel?

20 May
2 months ago

afrasiyabhaider left a reply on How To Work With Google Classroom Api In Laravel

I've found how to connect with google classroom API

1- go to "https://developers.google.com/classroom/quickstart/php" and enable classroom API

2- Open terminal in VS code and write command "composer require google/apiclient:^2.0"

3- Go to "\vendor\google\apiclient\src\Google\Client.php" and setup API

4- Set values in Client.php class constructor (Line 92) e.g client_id, client_secret etc

5- Create a controller and write the following code in the Index function

$client = new Google_Client();

    $service = new Google_Service_Classroom($client);

    dd($service); // display data - check if service is created or not
18 May
3 months ago

afrasiyabhaider left a reply on How To Work With Google Classroom Api In Laravel

Ok I am working with API, when I stuck anywhere then I'll post it here. Thanks for the help @

afrasiyabhaider left a reply on Laravel - Access Denied For User

You might be right but isn't this error occur occur because of .env variables?

 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'georgeka98'@'localhost' (using password: YES)")
      

Example of .env


DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_api
DB_USERNAME=root
DB_PASSWORD=

When i got this error I update these lines

afrasiyabhaider left a reply on How To Work With Google Classroom Api In Laravel

I want to work with Google Classroom API, so shouldn't I work with Socilaite? Is there anything else that i can work with?

afrasiyabhaider left a reply on Laravel - Access Denied For User

I've faced this error before. It occurs when you give wrong credentials for for phpmyadmin in .env file Please recheck the file and credentials

afrasiyabhaider left a reply on How To Work With Google Classroom Api In Laravel

Thank you @devfrey , But I've already gone through this documentation. I don't get what should i write in driver parameter

return Socialite::driver(' here??? ')->redirect();

afrasiyabhaider started a new conversation How To Work With Google Classroom Api In Laravel

I want to work with google classroom api and get classroom data (Course Material : Lectures/Assignments/etc) from google classroom api. How can i do that?

I've already tried google classroom documentation but it is way too complex

21 Mar
4 months ago

afrasiyabhaider started a new conversation PDO Exception Driver Not Found

Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = codeigniter_practice and table_name = migrations)

at G:\Wamps\wamp64\www\laravel_practices\lsapp\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664 660| // If an exception occurs when attempting to run a query, we'll format the error 661| // message to include the bindings with SQL, which will make this exception a 662| // lot more helpful to the developer instead of just the database's errors. 663| catch (Exception $e) {

664| throw new QueryException( 665| $query, $this->prepareBindings($bindings), $e 666| ); 667| } 668|

Exception trace:

1 PDOException::("could not find driver") G:\Wamps\wamp64\www\laravel_practices\lsapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70

2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=codeigniter_practice", "root", "", []) G:\Wamps\wamp64\www\laravel_practices\lsapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:70

Please use the argument -v to see more details.