shakti

Hire Me

Experience

8,630

12 Best Reply Awards

  • Member Since 1 Month Ago
  • 0 Lessons Completed
  • 0 Favorites

19th May, 2017

shakti left a reply on How I Can Store These Array Value In Same Row • 1 week ago

@bipin i have used your code which you have mention above and of id you can set it to primary key with auto increment attribute in your db it might help you

shakti left a reply on JSON Localization • 1 week ago

sorry but didn't get you??

shakti left a reply on How I Can Store These Array Value In Same Row • 1 week ago

try something like this

foreach($request->get('name') as $name) {
$data[]=
    array('name'=>$name);

);

Model::insert($data); // Eloquent
DB::table('table')->insert($data); // Query Builder

hope it might help you

shakti left a reply on How I Can Store These Array Value In Same Row • 1 week ago

the above array is the result of

dd($request->get('name'));

right?

18th May, 2017

shakti left a reply on Value Not Insert Into Table • 1 week ago

i think in the table your primary key name is not id as you shown on the error please copy the insert query and try to run on the mysql server see if it run correctly or not

if it return error then make changes as per the above statement

shakti left a reply on Value Not Insert Into Table • 1 week ago

$catid=DB::table('category')->insertGetId(
    ['name' => $name ];
);
$scatid=DB::table('subcategory ')->insertGetId(
    ['name' => $subcategory,'id_category'=>$catid ];

$scatid=DB::table('subling')->insertGetId(
    ['name' => $sibling,'id_subcatogory=>$scatid ];

please not the variable are as per my thinking you have to put your own variable

shakti left a reply on Value Not Insert Into Table • 1 week ago

@vikrant have you done this ???

shakti left a reply on How To Know The Laravel Php Base? • 1 week ago

just create a php file and write phpinfo(); it will inform you about your php server

shakti left a reply on Have Anyone Used Skype Api Ever? • 1 week ago

@bashy, @Snapey please comment on this post as for me you both knew everything so please help me in this

shakti left a reply on Issue With Db Migration • 1 week ago

okay great work bro

shakti left a reply on Value Not Insert Into Table • 1 week ago

$catid=DB::table('category')->insertGetId(
    ['name' => $name ]
);

now use this $catid in other table repeat the same

hope it might help you

if not please ping me

shakti left a reply on Sending Email • 1 week ago

please not that its a synatx error

i.e.

    $content = "This is a new newsletter subscriber."

missing ';'

shakti left a reply on Sending Email • 1 week ago

yes as per the coding it seem fine but you atleast test once on the server

shakti left a reply on Issue With Db Migration • 1 week ago

no you have to only change in env file

if you are not using xampp then what you are using for mysql server? create a db there and config that on env

shakti left a reply on Sending Email • 1 week ago

shakti left a reply on Get Laravel 5 DD In Laravel 4 • 1 week ago

you can use

 echo "<pre>"; print_r($val);die(); it might help you

shakti left a reply on Issue With Db Migration • 1 week ago

APP_ENV=local
APP_DEBUG=true
APP_KEY=[APPLICATION_KEY]
APP_URL=http://localhost

DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db_name
DB_USERNAME=root
DB_PASSWORD=

CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp

MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=[MAILTRAP_USERNAME]
MAIL_PASSWORD=[MAILTRAP_PASSWORD]
MAIL_ENCRYPTION=null

MAILGUN_DOMAIN=[MAILGUN_DOMAIN]
MAILGUN_SECRET=[MAILGUN_SECRET]

MANDRILL_KEY=[MANDRILL_KEY]

shakti left a reply on Issue With Db Migration • 1 week ago

please check .env file in the root and change db credentials as per your need

shakti left a reply on Call To Undefined Method Illuminate\Http\Response::download() • 1 week ago

The error is absolutely correct.. download doesn't exist in the Http class, it exists as an accessor method off of the Facade class.

use Illuminate\Support\Facades\Response;

If you (for some reason) need both, just alias it.

use Illuminate\Support\Facades\Response as FacadeResponse;

Then you can just do $response = FacadeResponse::download($content, 200);

shakti left a reply on Get Laravel 5 DD In Laravel 4 • 1 week ago

may be this link might help you

https://laravel.com/docs/4.2/helpers#miscellaneous

shakti left a reply on Capturing Form • 1 week ago

see as it state controller is not correct

as per my suggestion you should us route so that you will be able to define form submission method in that.

i dont think there is any error in your controller function

shakti left a reply on Class 'Illuminate\Html\HtmlServiceProvider' Not Found Error • 1 week ago

vendor\laravel\framework\src\Illuminate\Html\HtmlServiceProvider.php this exist or not ??

shakti left a reply on Class 'Illuminate\Html\HtmlServiceProvider' Not Found Error • 1 week ago

can you show your config/app.php code

shakti left a reply on JSON Localization • 1 week ago

you have to use multidimensional array as per your requirement and then convert them into json format

shakti left a reply on Capturing Form • 1 week ago

is it working now

in your controller add this code it might help you

public function postSeo(Request $request)
{
    $data = array('meta_title' => $request->get('meta_title'),
                   'meta_keyword' => $request->get('meta_keyword'),
                   'meta_description' => $request->get('meta_description')
                );

   DB::table('meta')->where('meta_id', '1')->update($data);
}

shakti left a reply on Laravel 5.4 Duplicate Data When Creating From JQuery Ajax Post With SetInterval • 1 week ago

is this new post or older do you still need help then i can answer??

shakti left a reply on Search For More Than One Things In One Search Bar? • 1 week ago

yes you can combine them by adding join in your query

hope it might help you

shakti left a reply on Have Anyone Used Skype Api Ever? • 1 week ago

No reply, does this mean noone has ever use this api or what??

shakti left a reply on Capturing Form • 1 week ago

in the action you have mention

action="seo"

and in the route your url name is different

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

May be this might help you

regard

shakti jha

17th May, 2017

shakti left a reply on Passport API ? • 1 week ago

sorry

but can you explain me in short what you basically want to do may be i can help in it

shakti left a reply on Laravel/Passport And Social Network Authentication • 1 week ago

i think when the app guy pass you detail then you can create auto-generated password and can store same in your db

it might help you

shakti left a reply on Passport API ? • 1 week ago

shakti started a new conversation Have Anyone Used Skype Api Ever? • 1 week ago

hello guys

Have anyone ever used skype api in there website if yes can you please give me some references for the same

Thanks in advance

shakti jha

shakti left a reply on Object Not Found • 1 week ago

its 404 which means page not found ... as per my point of view each section is wrong please check proper url try to add public before calling the route function it might help

shakti left a reply on Auth Attempt Fails If Username Is Not Unique • 1 week ago

as per my point

 Illuminate\Auth\AuthManager && 
Illuminate\Foundation\Auth\AuthenticatesUsers

but i strongly recommend not to change these file rather work on app\http\controllers\auth\logincontroller

hope it might help you

shakti left a reply on Object Not Found • 1 week ago

can you please show the exact error which you getting so that i could have idea what went wrong

shakti left a reply on Insert Record Same Time Multiple Table But Different Value • 1 week ago

have you done this

shakti left a reply on Insert Record Same Time Multiple Table But Different Value • 1 week ago

 $u=DB::table('category')->where('name','id')->get();
            dd($u);

what you want to do with this line

select * from category where name='id'

is this the code which you want to execute from above line

shakti left a reply on Laravel Edit Product, Set Correct Selected (with Many-to-many) • 1 week ago

its bit confusing from about code can you clear bit more what you wants to do in above section ??

shakti left a reply on Insert Record Same Time Multiple Table But Different Value • 1 week ago

sorry but from above your question is not clear can you please explain bit further

shakti left a reply on Laravel 5.2 + How To Add Different Href Links To Each @foreach Datas • 1 week ago

just add your city in json code or make array of them and whenever they require you can call them as per your requirement

shakti left a reply on What's The Worst Feature Of Laravel ? • 1 week ago

As per me i m new in laravel and the most typical part is its documentation as it have multiple version so it hard to understand on which section i m working

shakti left a reply on Laravel 5.2 + How To Add Different Href Links To Each @foreach Datas • 1 week ago

in view you have to pass value

@foreach($datas as $data)
<a href="{{url('url/'.$data->displayName)}}">{{ $data->displayName}}  </a>
@endforeach

Hope thing might help you

shakti left a reply on Call To Undefined Method Illuminate\Support\Facades\Auth::handle() • 1 week ago

Installation instructions cause us to create 'providers' setting in /app/config/local/app.php and it overrides the original config setting. So, we end up with only 2 lines.

I guess the config loader could have a line added to just check for 'providers' and append to setting instead of overwriting it. And I guess it should be done for 'aliases' also.

Let see it it might help you

shakti left a reply on Laravel Edit Product, Set Correct Selected (with Many-to-many) • 1 week ago

can you please print the collection which you are getting after executing the query

shakti left a reply on Call To Undefined Method Illuminate\Support\Facades\Auth::handle() • 1 week ago

Fixed this by adding in providers to the local config. For some reason the providers are not getting merged from the base config.

16th May, 2017

shakti left a reply on PHP ARTISAN SERVE • 1 week ago

shakti left a reply on Link To PHP Page • 1 week ago

please add / in route it might help

Route::get('/course',function(){
});

shakti left a reply on Laravel 4.2 Session Lifetime Not Working • 1 week ago

can you show your session.php code so that we can analyse it

Edit Your Profile
Update

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