Hibt

Hibt

Software Engineering ( Web developement And Designing) at Faisalabad

Member Since 4 Years Ago

Multan

Experience Points
2,875
Total
Experience

2,125 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
0
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.

Level 1
2,875 XP
12 Apr
2 years ago

Hibt started a new conversation Laravel Routing System

How to define laravel Routing, By the way i am new in laravel. Can Anyone help. Help will be Appreciated.

15 Nov
2 years ago

Hibt left a reply on Setting Table Dynamically

how i can i view the answers

28 Aug
3 years ago

Hibt left a reply on $errors Variable Not Available

Thank you @Snapey

i am reading this ...

Hibt left a reply on $errors Variable Not Available

@Snapey

Thanky you @snapey its Working


G:\wamp64\www\socialblog>php artisan route:list
+--------+----------+-----------+-----------+--------------------------------------------------+------------+
| Domain | Method   | URI       | Name      | Action                                           | Middleware |
+--------+----------+-----------+-----------+--------------------------------------------------+------------+
|        | GET|HEAD | /         |           | Closure                                          | web        |
|        | GET|HEAD | dashboard | dashboard | App\Http\Controllers\[email protected] | web        |
|        | POST     | signin    | signin    | App\Http\Controllers\[email protected]   | web        |
|        | POST     | signup    | signup    | App\Http\Controllers\[email protected]   | web        |
+--------+----------+-----------+-----------+--------------------------------------------------+------------+

i think laravel 5.2 automatically implement web middleware

Hibt left a reply on $errors Variable Not Available

Actually @Snapey you are saying web middleware is already implement ..... i shuold remove the route group. But I read a article it is mandatory to use Route::group in laravel 5.2

Can you guide me ?

Hibt left a reply on $errors Variable Not Available

@Snapey

its applied ....


G:\wamp64\www\socialblog>php artisan route:list
+--------+----------+-----------+-----------+--------------------------------------------------+------------+
| Domain | Method   | URI       | Name      | Action                                           | Middleware |
+--------+----------+-----------+-----------+--------------------------------------------------+------------+
|        | GET|HEAD | /         |           | Closure                                          | web,web    |
|        | GET|HEAD | dashboard | dashboard | App\Http\Controllers\[email protected] | web,web    |
|        | POST     | signin    | signin    | App\Http\Controllers\[email protected]   | web,web    |
|        | POST     | signup    | signup    | App\Http\Controllers\[email protected]   | web,web    |
+--------+----------+-----------+-----------+--------------------------------------------------+------------+



Dear can you Understand whats the problem

Hibt left a reply on $errors Variable Not Available

routes.php


Route::group(['middleware' => ['web']], function () {
    Route::get('/', function () {
        return view('welcome');
    });

    Route::post('/signup', [
        'uses' => '[email protected]',
        'as' => 'signup'
    ]);

    Route::post('/signin', [
        'uses' => '[email protected]',
        'as' => 'signin'
    ]);

    Route::get('/dashboard', [
        'uses' => '[email protected]',
        'as' => 'dashboard'
    ]);
});

Hibt started a new conversation $errors Variable Not Available

I am working on laravel 5.2. i am using middleware web. But my $errors variable is not shown. i am validating but variable $errors not shows the error. Can Anyone help me ??

 @if(count($errors) > 0)
       <div class="alert alert-danger">
           <ul>
               @foreach($errors->all() as $error)
                   <li>{{ $error }}</li>
               @endforeach
           </ul>
       </div>
   @endif

Hibt left a reply on Access Denied 'homestead'@'localhost'

@ABDELRHMAN Thank you brother... i am very glad to have a contact with you !!!!

Hibt left a reply on Access Denied 'homestead'@'localhost'

@ABDELRHMAN Thank you brother its working . Can i now give the name like

 DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=socialblog_db
DB_USERNAME=dbuser
DB_PASSWORD=123 


'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'socialblog_db'),
            'username' => env('DB_USERNAME', 'dbuser'),
            'password' => env('DB_PASSWORD', '123'),
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => false,
            'engine' => null,
        ],

Hibt left a reply on Access Denied 'homestead'@'localhost'

@ABDELRHMAN I am trying this ..!!

Hibt left a reply on Access Denied 'homestead'@'localhost'

config/database.php

'mysql' => [
            'driver' => 'mysql',
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'socialblog_db'),
            'username' => env('DB_USERNAME', 'root'),
            'password' => env('DB_PASSWORD', ''),
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => false,
            'engine' => null,
        ],

Hibt left a reply on Access Denied 'homestead'@'localhost'

@Jaytee How to change database credentials

Hibt left a reply on Access Denied 'homestead'@'localhost'

@jaytee please check the code of database on .env file

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

Hibt left a reply on Access Denied 'homestead'@'localhost'

@Jaytee How can i show my code here.... what are brackets are used for showing code ... By the way i am new on laracasts

Hibt started a new conversation Access Denied 'homestead'@'localhost'

PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES).

i have search about this . i have correct my code but i dnt whats the problem .. Please anyone help me !!!

14 Apr
3 years ago

Hibt left a reply on How Increase Uploading File Size In Laravel.

@mehany where to call this method ..... ?

Hibt started a new conversation How Increase Uploading File Size In Laravel.

How to increase file Uploading size in laravel . specially in .htaccess file . when i upload the file which is in kb size , it is uploaded easily but when i upload the file in MB size it is not uploaded. anyone help me ...

25 Jan
3 years ago

Hibt started a new conversation Soft Deleting

i am new in laravel . Can anyone tell me about the soft Deleting in models. waiting for any rresponse

30 Oct
3 years ago
29 Oct
3 years ago

Hibt left a reply on Seeding In Laravel 5

@mstnorris Thankx brother . i am trying

Hibt started a new conversation TokenMismatchException In VerifyCsrfToken.php Line 46:

i am facing a problem. Can any one help me.

i design two forms in Entertainment portal App.. both have file input types .. 1 for image uploadng 2 for Videos uploading image uploading works properly . But when i upload video from 2nd video uploading form. it creates error

TokenMismatchException in VerifyCsrfToken.php line 46:

both forms have the same token .

i tried to work manually like using HTML form and adding token this

<input type="hidden" name="_token" value="{{ csrf_token() }}">

and also used

{{  Fom::token() }}

but error remains same . and token remains same Any Solution ................

Hibt left a reply on Seeding In Laravel 5

@jekinney Now i have a idea .... thankx.

Hibt started a new conversation Seeding In Laravel 5

i Created the two models 1 for imagemodel for images crud and 2 for videosmodel for videos crud. i wan to migrate and refresh videosmodel But when i run command "php artisan migrate:refresh" both the model refresh and my data in imagesmodel has been deleted . how to avoid from this problem.

can anyone give me idea about "seeding" in laravel 5 and how to use it.

plz help me ............plz ???????????????????????

27 Oct
3 years ago

Hibt left a reply on Updation Of Image

@bobbybouwmann

ok . i am trying now

Hibt left a reply on Updation Of Image

@bobbybouwmann .

when i click on the edit buuton ........

"No file selected" mentionned in input field of file

Hibt left a reply on Updation Of Image

@bobbybouwmann .. through this . i can get the record of image but that image cannot be deleted from directory

{!! Form::model($imagee,['url' =>'/image/'.$imagee->id,'method' => 'PUT', 'files'=>true]) !!}

   <div class="form-group">
       {!! Form::label('file','Upload Image:') !!}
       {!! Form::file('file',null,['class'=>'form-control']) !!}
 </div><!--End of form-group -->
  
  {!! Form::submit($submitbutton,['class'=>'btn btn-primary']) !!}
 
{!! Form::close() !!}


Hibt started a new conversation Updation Of Image

Can anyone help me .i am facing a problem. i want to update a image and delete that image through which i am replacing updating image.

i also update the image but remaining image cannot be deleted from the directory. basically i cannot get the id from the database ... plz help me

25 Oct
3 years ago

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

oh yes..... @prithvi its working......

but brother if i want to do validation then @prithvi

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

@Snapey

i write that hostname/image/1/edit

but when i reload or refresh
it goes to

hostname/image

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

i am not accessing the editing form ..... i d,nt why dear @Snapey @bestmomo @thomaskim And @prithvi ......

i am again showing routes file... i am also add '/edit' in model form


Route::get('sdsd', 'WelcomeController@index');

Route::get('home', 'HomeController@index');

Route::get('image','filesController@indeximage');

Route::get('image/create','filesController@createimage');

Route::post('image','filesController@storeimage');

Route::get('image/{id}/edit','filesController@editimage');

Route::put('image/{id}','filesController@updateimage');


Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

@bestmomo  ... Here is the route:list for files controller

  | auth       |
|        | GET|HEAD                       | image
                  |      | App\Http\Controllers\filesController@indeximage
      |            |
|        | GET|HEAD                       | image/create
                  |      | App\Http\Controllers\filesController@createimage
      |            |
|        | POST                           | image
                  |      | App\Http\Controllers\filesController@storeimage
      |            |
|        | GET|HEAD                       | image/{id}/edit
                  |      | App\Http\Controllers\filesController@editimage
      |            |
|        | PATCH                          | image/{id}
                  |      | App\Http\Controllers\filesController@updateimage






Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

@bestmomo i am write route like your instructions .... but when i write the url for editing .... Controller not move to edit form

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

@bestmomo Using PUT method for Request ..!!!

routes and Controller is given above..

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

@prithvi dear filesController is here ..

<?php 
namespace App\Http\Controllers;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\fileddata;
use Illuminate\Http\Request;
use Input;
use validator;
use App\Http\Requests\Filesrequest;

class filesController extends Controller {

   

    public function indeximage() {

     $imgg = fileddata::get()->all();                
 
        return view('pages.show_page',compact('imgg'));

    }

    public function createimage() {
   
       
       return view('pages.create_page');    
       }

    public function storeimage(Filesrequest $request) {
 
     
   
      $imaged= new fileddata;

      if($request->hasFile('userfile')) {

       $file= $request->file('userfile');

      $destination_path='uploads/';
   
      $Orname = $file->getClientOriginalName();

      $filename= str_random(6).'_'.$Orname;
     
      $file->move($destination_path,$filename);
 
     $imaged->file = $destination_path.$filename;

     $imaged->save();     
        }
 
     else {
   
      echo "File not uploaded";

     }


     return redirect('image');
 
      }      

    
    public function showimage($id) {


       }

      

    public function editimage($id,Filesrequest $request){

      $imagee= fileddata::findOrFail($id);

      return view('pages.edit_page')->with('imagee',$imagee);
    }

   
   public function updateimage($id,Filesrequest $request)
   
   {
    
    $imagedd =fileddata::findOrFail($id);

    
   if ($request->hasFile('userfile')) {

       $file= $request->file('userfile');

      $destination_path='uploads/';
   
      $Orname = $file->getClientOriginalName();

      $filename= str_random(6).'_'.$Orname;
     
      $file->move($destination_path,$filename);
 
     $imagedd->file = $destination_path.$filename;

     $imagedd->save();     
        }
 
     else {
   
      echo "File not updated";

     }


     return redirect('image');

     }

   
   public function destroyimage($id) {


   }

     

}




Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

Dear @SetKyarWaLar ... Editing form is Here ...

{!! Form::model($imagee,['url' =>'/image/'.$imagee->id ,'method' => 'PUT', 'files'=>true]) !!}

<div class="form-group">
       {!! Form::label('userfile','Upload Image:') !!}
       {!! Form::file('userfile',null,['class'=>'form-control']) !!}
 </div><!--End of form-group -->
  
  {!! Form::submit("update",['class'=>'btn btn-primary']) !!}

{!! Form::close() !!}

Hibt left a reply on MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

My routing path is this...


Route::get('image','filesController@indeximage');

Route::get('image/create','filesController@createimage');

Route::post('image','filesController@storeimage');

Route::put('image/{id}/edit','filesController@editimage');

Route::patch('image/{id}','filesController@updateimage');

plz.... i am waiting for your response ???????????

Hibt started a new conversation MethodNotAllowedHttpException In RouteCollection.php Line 207: Error

Any one here can help me . i m facing some problem

MethodNotAllowedHttpException in RouteCollection.php line 207:

this error is displayed. i am developing a image gallery app. when i try to update image then, this error displayed.

help me plz........???????

14 Oct
3 years ago

Hibt left a reply on Addition Of Bootstrap Glyphicon In HTML Or Form Package Installed Buttons

Dear @mstnorris Brother

i am not going away from Standard ... this is also awesome .... but this creates problem is designing ...

i want to have buttons in a row but with using Form Helpers they are desingned in individuals rows. because of Form helpers

Hibt left a reply on Addition Of Bootstrap Glyphicon In HTML Or Form Package Installed Buttons

@mstnorris i am saying one method is that

{!! Form::open(['method' => 'DELETE', 'route' => ['list.destroy', $d->id] ]) !!}         
            {!! Form::submit('Delete', ['class' => 'btn btn-danger btn-md']) !!}
        {!! Form::close() !!}

any other method exists which is used for deletion of records.

Hibt left a reply on Addition Of Bootstrap Glyphicon In HTML Or Form Package Installed Buttons

@mstnorris

Anyone method exists for addition of glyphicon ?

and Plz tell me another method of deletion of records ..... one method is mentioned above ..... if anyone exists plz tell me ???

Hibt started a new conversation Addition Of Bootstrap Glyphicon In HTML Or Form Package Installed Buttons

How to add bootstrap glyphion in Form buttons of Laravel 5. Form is basically packgae of laravel whic is installed installed.

how to add bootstrap glyphicon in given below button

{!! Form::open(['method' => 'DELETE', 'route' => ['data.destroy', $detaildata->id] ]) !!}         
            {!! Form::submit('Delete', ['class' => 'btn btn-danger btn-md']) !!} 
13 Oct
3 years ago

Hibt started a new conversation .env Environment Problem

Can anyone help me i am facing a problem

PDOException in Connector.php line 47:
SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)

My another question is that if i download a laravel 5.0 and keep it in a drive. Can i develop multiple projects from this laravel 5.0. which i have store in my drive. plz give me description about

.env Environment of laravel     

i am waiting for your response...... !!!!!

Hibt left a reply on FatalErrorException In FilesController.php Line 42: Call To A Member Function GetClientOriginalName() On A Non-object

ok brother .... its working @bobbybouwmann And Brother @haakym.... Next time i will implement your advice...............!!!!!!!

Hibt left a reply on FatalErrorException In FilesController.php Line 42: Call To A Member Function GetClientOriginalName() On A Non-object

@bobbybouwmann

public function store(Request $request) {
 
     
   
      $imaged= new fileddata;

      $file= $request->Input('files_field');

      $destination_path='uploads/';
   
      $Orname = $file->getClientOriginalName();

      $filename= str_random(6).'_'.$Orname;
     
      $file->move($destination_path,$filename);
 
     $imaged->file = $destination_path.$filename;

     $imaged->save();     

 
      }