I am making an api for android is it possible to create token before user login or register?

|
StupidTwat 2020-05-08 23:46:10
The documentation and examples are pretty good
Netking1 2020-05-09 00:08:53
Hey Guys. I am making an api for android is it possible to create token before user login or register? Thank you
Netking1 2020-05-09 00:09:33
Netking1 2020-05-09 00:08:53
Hey Guys. I am making an api for android is it possible to create token before user login or register? Thank you

I just want to secure the api call

jk237 2020-05-09 00:15:53
Hey Guys, I use the mapbox api for geocoding, time and distance calculation but I can’t get the values returned by the predefined function. Thanks
jk237 2020-05-09 00:16:50
laravel_discuss-36556.jpg
For example
Jihat_developer 2020-05-09 00:42:35
how upload image in storage public on server read image
يمني بغبارة 2020-05-09 01:28:35
I created custem users table from phpmyadmin and I want to make login auth with username and password fields. How I can do that?
rdulk 2020-05-09 01:46:28
يمني بغبارة 2020-05-09 01:28:35
I created custem users table from phpmyadmin and I want to make login auth with username and password fields. How I can do that?

It’s better to run default auth initially, then modify the model as per your requirement

Osniel_ooc 2020-05-09 04:37:31
i wrote a test on laravel to check that when i send the wron id, the out show me tehe messaje tell that te id is wron, on the browser work ok but the test result is status 500
flyingdragons 2020-05-09 06:11:42
https://stackcoder.in/posts/what-is-composer-how-does-it-work-useful-composer-commands-and-usage

What Is Composer? How Does It Work? Useful Composer Commands And Usage | StackCoderStackCoder
In this article, you will learn: What Is Composer, Using Composer, Installation In Ubuntu/Windows/Mac, Working With Composer, composer update v/s composer install, composer.json & composer.lock, Difference Between require & require-dev.
flyingdragons 2020-05-09 06:22:25
mohamed abuassi 2020-05-08 22:31:11
I need some one have experience with dompdf

If you need I have written an article on it bro kindly reffer. It’s a step by step process and very easy to generate one.

https://stackcoder.in/posts/how-to-create-save-download-pdf-from-blade-template-in-php-laravel

Create / Save / Download PDF From Blade Template In PHP Laravel | StackCoderStackCoder
Hola! you amazing people, I am back with a new article. In this article, I will explain you how to create a PDF from a blade template with niklasravnsborg/laravel-pdf package. This package is a wrapper around mPDF.
flyingdragons 2020-05-09 06:23:43
mohamed abuassi 2020-05-08 19:26:47
With Arabian letter cant print

If your using font family then remove that in print css. Your problem will be solved

flyingdragons 2020-05-09 06:25:04
Developer_124 2020-05-08 18:27:54
It’s taking 30 sec response time

I think you might not have paginated

flyingdragons 2020-05-09 06:26:24
Developer_124 2020-05-08 18:27:15
Indexing really helps to increase the performance of website

Depends bro. The more frequent searched column in your table needs to indexed for example in users table email column needs to be indexed

flyingdragons 2020-05-09 06:27:42
But it doesn’t mean you randomly go on making all the column indexed it will overkill your application and make it worse.
flyingdragons 2020-05-09 06:34:23
Sujay 2020-05-07 22:30:33
Do we required to implement Web services like rest and soap in laravel web application? If yes or no why?

Depends on the requirement.

Let me give you an example – if your building an WebApp let’s it as *Invoices* and think that in future your gonna develop IOS & Android App for the same, or you want few of your clients to consume your Application then you need to have some of doing so

REST APIs comes to your rescue.

If you just you JSON it’s more than sufficient. No need to SOAP as it’s very complex and adds lots of complexity on developer as well as consumer side

flyingdragons 2020-05-09 06:35:00
But if you clearly tell for what you trying to develop this then we can surely help you
flyingdragons 2020-05-09 06:36:56
As far as I am concerned you need to know how the basic stuff works. Use the following link for your reference. Hope it will give you good understanding and solid foundation of HTTP
flyingdragons 2020-05-09 06:37:17
What Is HTTP? Different HTTP Methods And Status Codes Explained With Examples
https://stackcoder.in/posts/what-is-http-different-http-methods-and-status-codes-explained-with-examples

What Is HTTP? Different HTTP Methods And Status Codes Explained With Examples | StackCoderStackCoder
In this article, you will learn what is HTTP, types of HTTP Requests, explanation of each of them with examples, GET v/s POST, PUT v/s PATCH, HTTP Status Codes
flyingdragons 2020-05-09 06:41:00
2020-05-07 19:42:51
How do I make my site http to https

Hi Subha good to know that you would like to switch your website from http to https.

As per my understanding you might have used APACHE or NGINX for your server development.

You can do it freely with Lets encrypt

I have an good article link for it hope it helps you

flyingdragons 2020-05-09 06:42:00
How To Create Free SSL Certificate With Lets Encrypt/Certbot In Linux (Single / Multiple Domains)
https://stackcoder.in/posts/how-to-create-free-ssl-certificate-with-lets-encrypt-certbot-in-linux-single-multiple-domains

How To Create Free SSL Certificate With Lets Encrypt/Certbot In Linux (Single / Multiple Domains) | StackCoderStackCoder
Hola Amigos! In this article, you will learn a very interesting topic ie. to create free SSL Certificate with LetsEncrypt using Certbot. Yes, you heard and saw it right, all free of cost.
flyingdragons 2020-05-09 06:46:38
I know I might be replying too many stuff just want to contribute to the community.

I will add links to articles to the questions asked. As we may not add that big lengthy answers over here.

Not only my articles but from stackoverlow or other useful website which might help the community members.

So please don’t mistake me.

flyingdragons 2020-05-09 06:50:35
2020-05-07 13:36:08
Is it possible to undo a delete http request in laravel?

There is settings in MYSQL by which you can restore the record. Kindly check that setting.

I had done this 3 year back. So don’t know the exact name for this

Developer_124 2020-05-09 09:03:20
flyingdragons 2020-05-09 06:25:04
I think you might not have paginated

Paginated

Netking1 2020-05-09 09:03:26
يمني بغبارة 2020-05-09 01:28:35
I created custem users table from phpmyadmin and I want to make login auth with username and password fields. How I can do that?

Just add protected $table = “your table name”;

On your user model

Jooo 2020-05-09 09:07:48
laravel_discuss-36581.jpg

Jooo 2020-05-09 09:08:04
Error
Class ‘AppHttpMiddlewareMiddleware’ not found
skys215 2020-05-09 09:27:23
Jooo 2020-05-09 09:08:04
Error
Class ‘AppHttpMiddlewareMiddleware’ not found

see laravel.log
probably you have a syntax error in that middleware, if this file exists and the namespace is correct

Jooo 2020-05-09 09:30:51
skys215 2020-05-09 09:27:23
see laravel.log
probably you have a syntax error in that middleware, if this file exists and the namespace is correct

<?php
namespace AppHttpMiddleware;

use Closure;

use IlluminateSupportFacadesAuth;

class AdminMiddleware
{
/**
* Handle an incoming request.
*
* @param IlluminateHttpRequest $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(Auth::user()->usertype == ‘admin’){
return $next($request);
}else
{
return redirect(‘/home’);
}

}
}

skys215 2020-05-09 09:38:14
Jooo 2020-05-09 09:30:51
<?php
namespace AppHttpMiddleware;

use Closure;

use IlluminateSupportFacadesAuth;

class AdminMiddleware
{
/**
* Handle an incoming request.
*
* @param IlluminateHttpRequest $request
* @param Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(Auth::user()->usertype == ‘admin’){
return $next($request);
}else
{
return redirect(‘/home’);
}

}
}

So it’s AdminMiddleware, not Middleware

EEEN1993 2020-05-09 10:09:13
How to edit/delete field in json column field in laravel 6
skys215 2020-05-09 11:18:15
Same as other field
skys215 2020-05-09 11:20:40
So? Get the user and save avatar
skys215 2020-05-09 11:24:49
1. Get user
2. Set avatar attribute
3. Save
kashinkojie 2020-05-09 11:25:42
Salam hai. Siapa ad buat freelance ?
skys215 2020-05-09 11:55:46
kashinkojie 2020-05-09 11:25:42
Salam hai. Siapa ad buat freelance ?

sorry, English group

2020-05-09 13:06:34
Any one send me code in laravel

How to database is export in excel sheet

2020-05-09 13:19:29
laravel_discuss-36602.jpg
when i run the post/create in my browser this is the error i get
2020-05-09 13:20:29
laravel_discuss-36603.jpg
This is my web.php file
2020-05-09 13:21:08
laravel_discuss-36604.jpg
This is my create.blade,php file
2020-05-09 13:22:03
Can someone help me rectify the above error coz am really stuck
Sadeq2007 2020-05-09 13:32:40
2020-05-09 13:20:29
This is my web.php file

Route::resource(‘/posts’, ‘PostController’);

2020-05-09 13:38:52
Sadeq2007 2020-05-09 13:32:40
Route::resource(‘/posts’, ‘PostController’);

laravel_discuss-36607.jpg
When i change it to that it brings this error..!

2020-05-09 14:19:12
i guess someone should help me on this
skys215 2020-05-09 14:20:04
2020-05-09 14:19:12
i guess someone should help me on this

laravel_discuss-36609.jpg
‘action’ not only action

jumzeey 2020-05-09 14:24:06
Hello guys, I’m having issues with laravel livewire
jumzeey 2020-05-09 14:24:59
My app doesn’t seem to locate the livewire.js file, on inspecting network it keeps bringing up 404 not found for the Livewire.js file
2020-05-09 14:25:56
skys215 2020-05-09 14:20:04
‘action’ not only action

Thank you soo much…!!!

jumzeey 2020-05-09 14:26:00
And the file is being retrieved from localhost:app-name/vendor/Livewire/Livewire.js
2020-05-09 14:26:24
I have finally rectified it..bravo🙂
|