bipin

Experience

5,540

3 Best Reply Awards

  • Member Since 7 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

19th October, 2017

bipin left a reply on HTML Links In Laravel • 2 hours ago

That mean gyoza.php has post method change it to get method

bipin left a reply on [Doctrine\DBAL\Driver\PDOException] Migration Error : SQLSTATE[42S02]: • 2 hours ago

This is because you database has table migration in which it has all table info so delete required one then migrate again it will work

bipin left a reply on HTML Links In Laravel • 4 hours ago

Give try to this

      <li><a href="{{url('/asia/japan'}}" target = container> Gyoza </a></li>

Separate view and logic from Gyoza.php for view save it gyoza.blade.php and create route folder ( web.php file name) write it

   Route::get('asia/japan','[email protected]');

Create controller in app ->http any controller name

      createcontroller extend controller {
               anyname  function (){
   // Your logic
    return view('gyoza');

 } 

}

bipin started a new conversation Page Responded Http500 Error • 4 hours ago

Hello guys I had made a social login which work perfectly fine but from 2 days it's throw error like page is not working server in first attempt i.e in first try it throw error describe below but in second try (social login) user get successfully login

           This page isn’t working
        propertyhawker.com is currently unable to handle this     
          request .
   HTTP ERROR 500 

This this creating issue in appservice provider

        'redirect' => url('/auth/google/callback'); 

what is issue

28th September, 2017

bipin left a reply on How I Can Pass Variable On Javascript Html Object • 2 weeks ago

i solve my issue by this here is solution

          var url= "{{ url('browserview') }}"+"/"+id;
 
    var $iframe=$('<object data="'+url+'" width="100%" height="600px"></object>'); 

  $("#newname").append( $iframe);

bipin left a reply on How I Can Pass Variable On Javascript Html Object • 3 weeks ago

@topvillas how i can append id to route please help

bipin started a new conversation How I Can Pass Variable On Javascript Html Object • 3 weeks ago

hello guys i have one javascript here is my code

                $('.view').on('click', function() {
   
   
       var id = $(this).attr("data-id");
 
     
    var $iframe=$('<object data="{{ route('browserview', +id) }}" width="100%" height="600px"></object>'); 

  $("#newname").append( $iframe);

  
    }); 

how i can value value of id into something like this {{ route('browserview', +id) }} +id not working

26th September, 2017

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi thankx for your help i had solve my problem but if you tell me how i can add company table in auth it would be greate it just for knowledge purpose like edit in config file

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi thankx for your help i had solve my problem but if you tell me how i can add company table in auth it would be greate it just for knowledge purpose

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi this one DD(Auth::user()->company);

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi show error because of default id

    Invalid text representation: 7 ERROR: invalid input syntax for integer: "[email protected]" (SQL: select * from "company" where "company"."id" = [email protected] limit 1)

instead of company.id i need userid

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi good to add table in auth like auth::user and auth::company how i can achieve this

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

user table

   id | name |email |password  |userid

company table

   id | com_name |com_email | com_password  |userid |admin_verify

bipin left a reply on How To Show Particular Menu To Auth User • 3 weeks ago

@tisuchi user table does not have admin_verify column it in different table name as company

bipin started a new conversation How To Show Particular Menu To Auth User • 3 weeks ago

hello guys, i m try to show particular sidemenu menu to auth user(after user login) for eg sidemenu:-

     1. register
     2.create 
     3.edit
     4.report

here when user enter for first time it need admin verification (i.e i had admin_verify column in table company) if admin_verify column is false then user only able to see 1.register othervise he/she can see all menu and i don't know how to acheive that need help

20th September, 2017

bipin started a new conversation Index File Is Not Reading • 4 weeks ago

hello guys i m new baby to laravel so please ignore if its silly question recently laravel 5.4 upload to godaddy shared host server i does lot of google and found few thing

structure of cpane i have .plesk htdocs www.min.com www.pro.com www.propertyhawker.com etc

  1. i copy my whole project directly to propertyhawker.com (i.e laravel inside folder eg app public resource etc)

  2. i copy index.php file from public folder directly into propertyhawker.com 3.when i try to access index.php or just typing propertyhawker.com it throw error like Internal Server Error(The server encountered an internal error or misconfiguration and was unable to complete your request.) but when i just echo

it work properly can i know reason why this happen if anyone know how to upload whole server or hole process please let me know

18th September, 2017

bipin started a new conversation Failed To Open Stream: Permission Denied • 1 month ago

hello guys first time i had uploaded my project on godaddy window shared host and i set all permission to 777 why still getting issue

        UnexpectedValueException

The stream or file "G:\PleskVhosts\minsyst.com\propertyhawker\storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in StreamHandler.php (line 107) at StreamHandler->write(array('message' => 'exception 'UnexpectedValueException' with message 'The stream or file "G:\PleskVhosts\minsyst.com\propertyhawker\storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:107Stack trace:#0 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array)#1 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array)#2 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Logger.php(616): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)#3 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Log\Writer.php(203): Monolog\Logger->error(Object(UnexpectedValueException), Array)#4 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Log\Writer.php(114): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array)#5 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(71): Illuminate\Log\Writer->error(Object(UnexpectedValueException))#6 G:\PleskVhosts\minsyst.com\propertyhawker\app\Exceptions\Handler.php(35): Illuminate\Foundation\Exceptions\Handler->report(Object(UnexpectedValueException))#7 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(314): App\Exceptions\Handler->report(Object(UnexpectedValueException))#8 i had already give 777 permission to storage using firezilla and moreover my user id have all wirte i.e 777

6th September, 2017

bipin left a reply on Too Many Arguments (Php Artisan Make:migration Create) • 1 month ago

try to create subscriber table with other name

5th September, 2017

bipin left a reply on Retrieve Deep Nested Relation Count • 1 month ago

@mvww11 where you are does count blade or controller use foreach to access nested value

bipin started a new conversation How To Pass Dynamic Selector Value To Jquery • 1 month ago

hello guys here, i m trying to get dynamic input id value into jquery here is my view

                       <select class="selectpicker form-control " id="applicantstatus[{{$s->id}}]" name="applicantstatus[{{$s->id}}]" data-style="btn-info btn btn-xs" data-posttd="{{$s->id}}" data-width="auto" >  <option >Select</option>
                                  <option   value="Processing" >Processing</option>     
                                  <option   value="Hired">Hired</option>
                                  <option   value="Reject">Rejected</option>
                                  <option   value="RollBack">RollBack</option>
                               </select>
                               
                                </td>
                                <td class="text-right footable-visible footable-last-column">
                                    
                                    <div>
                                            
                                         
                                        <a class="btn-success btn btn-xs setvalue" data-id="{{$s->id}}">Save</a>

                                    </div>
                                </td>

here is my script

                           <script type="text/javascript">

$(document).ready(function() {

   $('.setvalue').on('click', function() {
    debugger
       var id = $(this).attr("data-id");
       var new1 = id;
        var inp =  $('#applicantstatus[new1]').val();
    
  
        });

});

31st August, 2017

bipin left a reply on How To Display Data For Limited Time • 1 month ago

@Cronix thanks for your soultion i will try and let you know

bipin started a new conversation How To Display Data For Limited Time • 1 month ago

hello guys i have table name as applicant it have 4 column name as name,updated_at,status expire

         name  | Update_at  | status  |expire
         kaust  | 2017/08/13 | 1           |null
         jhone  | 2017/08/13 | 1           |null
         wills    | 2017/08/13 | 1           |null
         done   | 2017/08/13 | 0          |2017/08/14

now here i want to display all data but if data have expire in cloumn then it should not display that row and know how to do please share with me

30th August, 2017

bipin left a reply on How To Get Table And Text Value Of Phpword • 1 month ago

@bashy element->getText working ,is there any other way

29th August, 2017

bipin left a reply on How To Get Table And Text Value Of Phpword • 1 month ago

yes, if i use this if condition if(!$element->getText()==null) then it work perfectly

bipin left a reply on How To Get Table And Text Value Of Phpword • 1 month ago

@bashy it have array value

           #Text: array:1 [▶]
            #Table: array:1 [▶]
            #TextRun:array:1 [▶]
           

and i want to access Table value

        if($element instanceof PhpOffice\PhpWord\Element\Table) 

since i have Table in element array so why above if condition not working it getting out if condition(else)

bipin left a reply on How To Get Table And Text Value Of Phpword • 1 month ago

   foreach($phpWord->getSections() as $section) {
                        foreach($section->getElements() as $element) {
                             if($element instanceof 
     PhpOffice\PhpWord\Element\Text) {
                                dd('h');
                                echo($element->getText() . "<br><br>");
                                                             
                           }
     else{ 
 it go here instead of if condition
   }
 }

bipin left a reply on How To Get Table And Text Value Of Phpword • 1 month ago

it not going in if condition

bipin started a new conversation How To Get Table And Text Value Of Phpword • 1 month ago

here i m try to fetch table as well as text value which i m getting from doc file(getting from database) please help me how i can fetch table value here is my code

                $phpWord = \PhpOffice\PhpWord\IOFactory::load($fullPath);

                           $sections = $phpWord->getSections();

                     //   $phpWord = IOFactory::createReader('Word2007')->load($fullPath);

                       //      dd($phpWord);
                                    
          $sections = $phpWord->getSections();    

foreach ($sections[0]->getElements() as $el) {

if ($el instanceof PhpOffice\PhpWord\Element\Table)
{
    dd('h');
echo 'new table <br><br>';
foreach ($el->getRows() as $row)
{
    foreach ($row->getCells() as $cell)
    {
        echo $cell->getElements()[0]->getText().'***';
    }
    echo '<br>';
}}
if ($cell->getElements()[0] instanceof PhpOffice\PhpWord\Element\Text)

{ dd('h1'); echo $cell->getElements()[0]->getText().'***'; } }

bipin left a reply on How To View Or Convert Docx File • 1 month ago

thanks bro but it not what i want something Powertools like which in .net

bipin started a new conversation How To View Or Convert Docx File • 1 month ago

how i can convert doc file in html view means(format does not get effected ) so i can view it into brower

28th August, 2017

bipin left a reply on Trying To Get Property Of Non-object - For Authorized Users Only • 1 month ago

@almost_pitt did you check using dd in controller what you are getting i think you are getting same auth::id more than once

bipin left a reply on Trying To Get Property Of Non-object - For Authorized Users Only • 1 month ago

maybe it because your blade does not contain if else condition

24th August, 2017

bipin left a reply on PDOException: SQLSTATE[HY000] [2002] Connection Refused In Unit Testing Via Phpstorm • 1 month ago

restart you system or press window button + r to open run type services and in services window search for database you are using restart that service

!!hope this help

bipin left a reply on Pls Help! My Php Artisan Command Has Just Stopped Working. I Get A "[RuntimeException] Directory Name Must Not Be Empty" Error • 1 month ago

did you check your path of cmd is same as project folder for eg:-

   C:\xampp\htdocs\yourproject>

or E:\yourproject> just give path where you have your project

bipin left a reply on Help With Postgres And Laravel • 1 month ago

it error because you have not null column and you are inserting null value in that column. so change coulmn name ( that coulmn you are getting as you describe in error section of your question) to nullable it will work

i haven't see any error in this query

     $value = Table::where('name', 'test')->first();

23rd August, 2017

bipin left a reply on Count And Get In Same Query • 1 month ago

@tisuchi it throw error like this strtolower() expects parameter 1 to be string, array given

bipin left a reply on Count And Get In Same Query • 1 month ago

@tisuchi i want to achieve this by query

bipin left a reply on Count And Get In Same Query • 1 month ago

@tisuchi i had try this but not working

     $users = DB::table('job_postings')
                         ->select(DB::raw("jobpostingid FROM mi_rec_applicants 
                            WHERE jobpostingid ='$a' AND   accept='1'"))
                         ->join('mi_rec_applicants', 'job_postings.job_pos_id', '=', 
                             'mi_rec_applicants.jobpostingid')
                         ->get();

bipin started a new conversation Count And Get In Same Query • 1 month ago

hello guys i have 2 different table one is job_postings and second one is mi_rec_applicants here i just want to count value of mi_rec_applicants and hole data of job_postings in single query like this

                  0 => {#354 ▼
                              +"id": 12
                              +"userid": "[email protected]"
                              +"cmpnyname": "ABC Ltd"
                              +"job_pos_id": "JOB00000000000010014"
                              +"pos_stat": "Live"
                              +"intjobpos_id": "JOB00000000000010014"
                              +"job_title": "Beauty/Fitness/Spa Services"
                              +"job_type": "Permanent"
                              +"job_loc": "Mumbai"
                              +"no_of_pos": "12"
                              +"gender": "No_preference"
                              +"pref_nat": "Indian"
                              +"min_qual": "BOM"
                              +"pref_qual": "MOR"
 
                           }

here below +"pref_qual": "MOR" i want count value of table one how i can achieve this

22nd August, 2017

bipin started a new conversation How I Can Use Iframe Or Form Using Controller • 1 month ago

hello 2 thing i just want to know few thing 1. i m just want to know is there any way to create i frame in controller and display it as a view here is code i want to display it as like this

    $headerImg =  "<iframe src=".$fullPath."></iframe>";
                                            $contentType = mime_content_type($fullPath);
                                            return response(file_get_contents($fullPath), 200, [
                                            $headerImg]);
  1. how i can display pdf and doc file along with download and close button , in above this code

            $contentType = mime_content_type($fullPath);
                                             return response(file_get_contents($fullPath), 200, [
                                             'Content-Type' => $contentType,
                                             'Content-Disposition' => 'inline; filename="'.$fullPath.'"']);
    

it have download as well as cancel button when i respon back as pdf but if i respond back as doc then it does not have download & cancel button

18th August, 2017

bipin left a reply on Why Resource Not Getting Loaded • 2 months ago

@martinbean other view working properly

bipin started a new conversation Why Resource Not Getting Loaded • 2 months ago

i have css file which is located at resource/assets folder when i m loading view its throw error like this

    GET http://localhost/mwayhire_de/public/resources/assets/vendors/font-awesome/css/font-awesome.min.css 

my file is at same location where it throw error moreover other view are working properly but this throw error

10th August, 2017

bipin started a new conversation FirstorCreate Function Taking Only 2 Parameter • 2 months ago

i m trying to save data to user table using first or create

           $user=User::firstorCreate(
      ['user_type'=>2],
      ['fname'=>$socialuser1 ->user['name']['givenName']],
      ['lname'=>$socialuser1 ->user['name']['familyName']],
      ['userid'=>$socialuser1 ->getEmail()],
      ['email'=>$socialuser1 ->getEmail()],
      ['password'=>Hash::make(str_random(8))]
        );

this data i m try to save why i m getting this error

     SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "lname" violates 
    not-null constraint
    DETAIL: Failing row contains (3, 2, rocky, null, null, null, null, f, null, 2017-08-10 12:20:56, 
   2017-08-10 12:20:56). (SQL: insert into "users" ("user_type", "fname", "updated_at", 
    "created_at") values (2, rocky, 2017-08-10 12:20:56, 2017-08-10 12:20:56) returning "id")

every field is my table is not null field but this issue should not be arise because i m passing value ever field i have value in every field i had checked using dd

9th August, 2017

bipin left a reply on Cant Foreach Array In Blade • 2 months ago

chu

bipin started a new conversation Route Not Define In Laravel • 2 months ago

i m using route function to send my data but it not working here is my blade

                 <a href="{{route('hrlogin.google',['google'])}}" class="btn btn-lg btn-block 
                   omb_btn-google">

here is my route

                      Route::get('auth/{provider}', 'Auth\[email protected]')->name('hrlogin.google');

but it throw error route not define i dont know why this happen is this bug

8th August, 2017

bipin left a reply on Custom Validation • 2 months ago

just use default validation it will automatically do what you want

bipin left a reply on How Join Two Queries And Do Pagination • 2 months ago

go like this

 $resultall = $Result1 . ' ' . $Result2;

30th June, 2017

bipin left a reply on Laravel 5.4 Dynamic Form Save Data To Database • 3 months ago

@nanadjei2 this error occur because you are trying to store invalide date formate in your table

bipin left a reply on How Do I Check If There Is Empty Field In My Datatable? • 3 months ago

i m not getting what you are try to do you can explain it more clearly so i can help..

bipin left a reply on How Do I Check If There Is Empty Field In My Datatable? • 3 months ago

@dreamxyz did you fetch table in controller

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.