Skip links

Ani

Creating REST API’s with Laravel Sanctum

Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs. Sanctum allows each user of your application to generate multiple API tokens for their account. These tokens may be granted abilities / scopes which specify which actions the tokens are allowed to perform. Note: All API […]

Laravel Artisan Command List and Usage

To get a list of all artisan commands, type the following command in terminal window. Commonly Used Commands Command List Description php artisan list List of all artisan commands php artisan cache:clear Flush the application cache php artisan key:generate Set the application key php artisan make:controller ControllerName Creates a New Controller php artisan make:model ModelName […]

Laravel Installation – First Steps with Laravel

Step 1: Install PHP / MySql on your Operating System

I suggest using XAAMP on both macOS and Windows.
visit: apachefriends.org to download and install Xaamp

Step 2: Install Composer

visit: https://getcomposer.org/doc/00-intro.md

Run following command in Terminal or CMD

Props & State in React Native

Props Props is short for “properties”. Props let you customize React components. For example, here you pass each <Cat> a different name for Cat to render: State Functional Component State and Class Component In class component state is stored as an Object.

Functional vs Class Component in React

Functional Components Class Components A functional component is just a plain JavaScript function that accepts props as an argument and returns a React element. A class component requires you to extend from React. Component and create a render function that returns a React element. There is no render method used in functional components. It must […]

React Native State

import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; // class component export default class App extends React.Component { state = { myState: 'some state informaiton stored' } updateState = () => this.setState({ myState: 'The state is updated by onPress event' }) render() { return ( <View style = {styles.container}> <Text>Open up [...]

Solved: CocoaPods could not find compatible versions for pod “FlipperKit/CppBridge”:

Getting this or a similar error while running installing pod for the first time? Error [!] CocoaPods could not find compatible versions for pod “FlipperKit/CppBridge”:In Podfile:FlipperKit/CppBridge (= 0.99.0) None of your spec sources contain a spec satisfying the dependency: FlipperKit/CppBridge (= 0.99.0). You have either: out-of-date source repos which you can update with pod repo […]